I've run into a problem that Google has so far been unable to help me with. I've been placing all of my site documents in the site root directory, but it's beginning to get cluttered. I tried moving several files into a subdirectory, but of course I'm using relative links to make coding easier and lighten up the files, so my links broke when I tried to do that. After a bit of Googling, I tried to convert the links to root-relative links (as I understand it, I simply need to place a / at the beginning of the link), including the links in my php includes, which also contain the link to my CSS stylesheet. Problem is, they don't seem to work.
On my testing server:
http://www.japancpi.com/cp/prod/ipodtouch.php
That page should link to the following 3 files:
http://www.japancpi.com/cp/default.css
http://www.japancpi.com/cp/head.inc
http://www.japancpi.com/cp/foot.inc
as well as several images.
Please, any advise would be wonderful.
This is running on shared hosting, a Linux box running Apache version 1.3.37 and PHP version 5.2.5.
jW
On my testing server:
http://www.japancpi.com/cp/prod/ipodtouch.php
That page should link to the following 3 files:
http://www.japancpi.com/cp/default.css
http://www.japancpi.com/cp/head.inc
http://www.japancpi.com/cp/foot.inc
as well as several images.
Please, any advise would be wonderful.
This is running on shared hosting, a Linux box running Apache version 1.3.37 and PHP version 5.2.5.
jW