Forum Moderators: open

Message Too Old, No Replies

proper hrefs using relative links

what is the best way to call internal pages?

         

Reid

4:51 am on May 4, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



ok I can call internal pages in a few ways but I'm not sure what is best.
If I am in root directory and I want to call a page from a folder.
href="/widget/widget.html" or href="widget/widget.html"

If I am in folder 'widget' and I want to go up to the root folder how should I go?
href="/widget.html" or href="../widget.html"

4hero

8:58 am on May 4, 2006 (gmt 0)

10+ Year Member



Hello,

I always use href="widget/widget.html"

and href="../widget.html"

not sure about anyone else..

limbo

10:37 am on May 4, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



As above - I use ../ as opposed to / as this makes the site fully navigable on the local server for testing.