06-02-2007, 01:59 AM
I would like to know if there is a way to make internal links to your document root. I know there is a way to do it with PHP includes, but not with links. Any help would be great. Thanks.
06-02-2007, 02:08 AM
Yeah, it's actually simpler than you would think. Just use ../ to go back one folder. (ie <a href="../things.html">Things</a>)
If you wanted to go to the root folder, than why not just use a absolute destination? I.E. if your site is www.internet.com, and you are in the stuff/things/ folder, link to "http://www.internet.com/index.html".
06-02-2007, 02:29 AM
I don't want to use an absolute destination, that is why I asked for doc root.
06-02-2007, 02:55 AM
A leading / in a url refers to the document root - http://www.library.upenn.edu/sitedocs/tutorials/html/atags-abs-rootrel.html