Site files in directory not seeing url path

Discussion in 'HTML & Website Design' started by fadetoblack22, Oct 5, 2008.

  1. #1
    I have my main site with the style.css file, index.php, menu.php images folder etc..

    I also have folder for another part for the site.

    There is an index.php file in the folder that is looking back at the other files like this e.g. ../style.css. ../menu.php

    In the style css I have links to images e.g. /images/image1.jpg

    I also have the same in my menu.php include. e.g. /images/home.jpg

    However it doesn't find the images in the menu.php because it is still looking in /images/home.jpg rather than ../images/home.jpg. In the style file it finds the images even though it is calling it from the root.

    Does anyone know why this may be?

    I don't want to go back and change everything to absolute urls.
     
    fadetoblack22, Oct 5, 2008 IP