I'm working on setting up my site with a folder for each primary webpage.
For example:
To get to the contact page...
http://www.mysite.com/contact/index.php
(except in the code I would like to only put "contact/index.php" as the link)
And I would like to be able to set links to get back to the homepage or other site pages without having to enter the full site address
For example, traveling from the contact page (contact/index.php) to the homepage (home/index.php) I would prefer to not enter http://www.mysite.com/home/index.php.
Does anyone know the shorthand way to do it?
Folder Navigation - HTML
Moderator: General Moderators
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
Code: Select all
<a href="/contact/">Contact page</a>
<a href="/home/">Home page</a>try
you have to mess with that a little..
Code: Select all
<a href="./contact/">Contact page</a>
<a href="./home/">Home page</a>
or
<a href="contact/">Contact page</a>
<a href="home/">Home page</a>