subdomain not working properly

Senna

Verified User
Joined
Feb 12, 2004
Messages
10
I have created a subdomain.

My images are not loaded when I access the page at : webcam.gasoline.nl, but it works all right when I access the page with: www.gasoline.nl/webcam.

Is there a option to make this work ?



I now have added '<base href="http://www.gasoline.nl">' in my document. Is that a good solution or not. !!
 
Last edited:
Hello,

When you use a subdomain, the images are always going to be relative to your document root. So if you are viewing webcam.gasoline.nl/index.html, and it loads "image.gif" .. that gif file should be located at .../domains/gasoline.nl/public_html/webcam/image.gif

By setting the "base", it will look in .../domains/gasoline.nl/public_html/image.gif.. so your method of fixing it will work just fine.

John
 
Back
Top