Forum Moderators: mack

Message Too Old, No Replies

Relative Links

Info Question

         

zulufox

4:08 pm on Dec 10, 2003 (gmt 0)

10+ Year Member



My site has ALL non-relative links:

[widget.com...]

However I heard that relative links are better...

1. How do I make a link (such as the one above) relative

2. On a ASP website, what are the advantages of relative links?

Thanks!

jbinbpt

4:21 pm on Dec 10, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi zulufox,
The links will work either way. This thread give some insight into the subject Links [webmasterworld.com].

The asp guestion, you might want to toss into the asp forum.

jb

hanuman

8:20 am on Dec 11, 2003 (gmt 0)

10+ Year Member



I will stay with ALL absolute urls. if you teach your self clean authoring styles, and all your links are absolute to the root, you will have much easier life maintaining you site on the long run. i strongly recommend to stay away from relative links.

JamesR

8:03 pm on Dec 11, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



heh, I actually have started to use relative links much more. It makes offsite testing and development easier for me. You just have to have a clearly defined structure and know where you are at to avoid a bit of a mess.

Using your example above, <a href="/goodies/buyme.htm"> is an example of a relative link. The browser will fill in the protocol (http://) and domain name for you.