View Full Version : Why am I forced to use "absolute URLs" in code?

10-28-2011, 03:44 AM
This is very odd. I am modifying a website locally on my machine before I upload it for a client.

Why is the entire site structure forcing me to use absolute path URL's for things like images, css, site linking etc...

So this simply doesn't work <img src="../images/photo.png"> I have to use the entire "http://www.-----

All my other sites allow relative linking and they have always worked great.

What is forcing this site to force me to use absolute URL's?

Very confused here!! Thanks!!!

10-28-2011, 03:53 AM
Hello listerdl,
Umm, maybe because the images are not on the local machine?

Have you ever tried <base html="path" /> ? Look at this suggestion: http://www.w3schools.com/tags/tag_base.asp

10-28-2011, 03:58 AM
THANKS that is what the "problem" was.