PDA

View Full Version : Got a problem with domain Alias


Benj
06-03-2000, 07:16 AM
Hi,
lets say my site is http://www.mysite.com, and on this site I have a directory /fr/ (http://www.mysite.com/fr/)

I have asked for an "fr." domain alias which would point to http://www.mysite.com/fr/.
So http://fr.mysite.com/ would point to http://www.mysite.com/fr/

It was setup and points correctly to the directory, but all the files loaded from http://fr.mysite.com/ have broken image ?![nbsp][nbsp]because it seems that the page doesn't consider its on http://www.mysite.com/fr/ but on http://fr.mysite.com/ so of course all the relatives images link are broken.

Is there a way to prevent this ? Like to have http://fr.mysite.com/[nbsp][nbsp]really redirecting on http://www.mysite.com/fr/ without staying in the nav bar ?

Benj


[This message has been edited by Benj (edited 06-03-00@08:37 am)]

Justin
06-03-2000, 08:50 AM
The best thing I can recommend would be to use full URL image references instead of relative. I recommend that in any case, mainly because if I visit http://www.yourdomain.com and later visit http://yourdomain.com w/o the 'www', I won't have to re-download your images (since they will be cached). Using relative URLs, the images take on a different URL, and my browser's cache sees them as a different URL and will thus re-download them.

Othewise, you can throw a small index page with a META redirect tag, and point the user to a different page...

Hope this helps.

------------------
Justin Nelson
FutureQuest (http://www.FutureQuest.net/index.php) Support

Benj
06-03-2000, 09:06 AM
I recommend that in any case, mainly because if I visit http://www.yourdomain.com and later visit http://yourdomain.com w/o the 'www', I won't have to re-download your images (since they will be cached)

Great Advice...... I will now have to re-edit ALL my site web pages !! ;)[nbsp][nbsp]Fun day in perspective lol

Anyway, for the broken images problem on the subdomain, I will have no choice than use your meta tag redirect idea, because even if I modify all the images, I have serveral script poiting to the wrong location and it will far easier just to put a redirect.

But I will then have to change the pointing of the subdomain to another directory... so from this directory it will jump in the correct on. Is this possible to do this without setup fees ? (I already paid for the initial subdoamins) and in this case I will fill a support request form...

Thanks
Benj

Shalazar
06-03-2000, 02:35 PM
Well, for mass web page editing, I'd definitely suggest a program like Edit Plus or UltraEdit.[nbsp][nbsp]And assuming your code is uniform, like all your <img> tags are formatted the same way, you can open up all your pages at once and do one massive search and replace, rather than doing it brute force page by page =)