FRIHOSTFORUMSFAQTOSBLOGSDIRECTORY
You are invited to Log in or Register a Frihost Account!

Confused on nav bar links

 


thpn
Okay, I have a layout with nav bars on both sides. I added some links to the first page and everything is okay. I make another directory and then add the same links, but instead of it going to www.teenstop.frih.net it goes to www.teenstop.frih.net/ministry/index.html (the directory). So, is there a way to make it go to the home page and the pages under it?
johanfh
I guess you typed something like <a href="index.html">Start page</A>. On your maindir that did work, but when you are in a subdir you need to add "../" to go up a directory or to be totally sure you need to type the exact url. So:
(1) <a href="../index.html">Start page</a>
or
(2) <a href="http://www.teenstop.frih.net/index.html">Start page</a>
(note the http:// !!)
The second has one disadventage: if you ever change your domainname you need to recode all your internal links.

Success!
JohanFH
thpn
All right, thanks for the help!
Reply to topic    Frihost Forum Index -> Scripting -> Html, CSS and Javascript

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2007 Frihost, forums powered by phpBB.