Stupid URL question. - Printable Version +- 2DWorlds Forums (http://2dworlds.buildism.net/forum) +-- Forum: Off Topic (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=5) +--- Forum: Programming (http://2dworlds.buildism.net/forum/forumdisplay.php?fid=30) +--- Thread: Stupid URL question. (/showthread.php?tid=7053) |
Stupid URL question. - Qwertygiy - 07-20-2011 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 RE: Stupid URL question. - Qwertygiy - 07-20-2011 Well? Anyone know? RE: Stupid URL question. - Dignity - 07-21-2011 Nope. RE: Stupid URL question. - Jacob__mybb_import1 - 07-21-2011 <a href="/filename.html">Like this.</a> RE: Stupid URL question. - Dignity - 07-21-2011 With PHP, throu? RE: Stupid URL question. - Jacob__mybb_import1 - 07-21-2011 (07-21-2011, 07:41 PM)roperson Wrote: With PHP, throu? include("../filename.php"); RE: Stupid URL question. - Qwertygiy - 07-22-2011 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. RE: Stupid URL question. - Jacob__mybb_import1 - 07-22-2011 (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. |