How do I make it so that I can access files in the main directory of my site, from pages inside other directories, without using HTTP://sitename
Stupid URL question.
|
07-20-2011, 09:28 PM
Well? Anyone know?
07-21-2011, 07:30 PM
Nope.
07-21-2011, 07:36 PM
<a href="/filename.html">Like this.</a>
07-21-2011, 07:41 PM
With PHP, throu?
07-21-2011, 07:45 PM
07-22-2011, 12:39 AM
With that though, it looks for that file, inside that directory.
<site> -<file> -<directory> --<directory2> ---<page> If I have "<a href="/file.html">" in "page", it's going to try to look for it in directory2.
07-22-2011, 01:18 AM
(07-22-2011, 12:39 AM)Qwertygiy Wrote: With that though, it looks for that file, inside that directory. No, if you start a path with a / it means the root of the domain name. |
« Next Oldest | Next Newest »
|
Users browsing this thread: 3 Guest(s)