|
-
Feb 7th, 2002, 03:00 PM
#5
Stuck in the 80s
Originally posted by JoshT
Hard-coding full URLs will be a pain if you ever need to move the pages to another server...
If your link looks like <a href="page.html">, the browser will request it from the server in the current directory.
If your links looks like <a href="/page.html"> the browser will request it from the root of the server, so the full url would be "http://www.server.com" + "/page.html", so "http://www.server.com/page.html".
and if he has his page on geocities or some other such service and uses <a href="/page.html">, it will request it from "http://www.geocities.com/page.html" am I correct? That would lead to a 404.
And with the find/replace options, it wouldn't be that hard to fix if you changed servers. And I use something like:
"<#include file="linkto.txt">/images/05.gif" (SSI) so when it reads it, it will put "http://www.mysite.com/images/05.gif" in the link. (because I do change servers often)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|