Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Stupid URL question.
#1
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
Reply
#2
Well? Anyone know?
Reply
#3
Nope.
Reply
#4
<a href="/filename.html">Like this.</a>
Reply
#5
With PHP, throu?
Reply
#6
(07-21-2011, 07:41 PM)roperson Wrote: With PHP, throu?

include("../filename.php");
Reply
#7
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.
Reply
#8
(07-22-2011, 12:39 AM)Qwertygiy Wrote: 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.

No, if you start a path with a / it means the root of the domain name.
Reply


Forum Jump:


Users browsing this thread: 3 Guest(s)