Forum Moderators: open

Message Too Old, No Replies

<a href="widget.html"> or

humor me on this one

         

5x54u

10:46 pm on Aug 25, 2004 (gmt 0)

10+ Year Member



I am handling a site that is almost 700 pages and I have previously hard coded all internal links like this:

<a href="http://www.widgets.com/ordering.html">

I use Golive CS and if you can belive this for the first time I actually had to rename a page. WHen I did so it did not update all other pages that link to this becuase they are all hard coded.

Then I changed href to href="ordering.html"> and ran through the SIM Spider and it returned H_TTP://ordering.html and obviuosly that can not happen so my question is this; Does everybody that wants a page spidered, hard code the [ww_w.etc?...]

Or is there a better way?

Forgive me if this subject has been beat up but I could not find a clear answer in search.

jdMorgan

11:03 pm on Aug 25, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Well, I'd recommend using <a href="/ordering.html">, but it sounds like you've found a bug in simspider. It is up to the client to resolve non-canonical URLs, and in this case it looks like the client resolved it incorrectly.

[added] There are several threads here on "site-wide" search and replace tools that you might want to look into for link maintenance purposes. [/added]

Jim

[edited by: jdMorgan at 11:04 pm (utc) on Aug. 25, 2004]

drbrain

11:03 pm on Aug 25, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I use relative URLs.

If the page is in the same directory, don't use a /:

/widget/index.html -> /widget/order.html
<a href="order.html">

If the page is in a different subdirectory, I use the full path:

/widget/index.html -> /thingamabob/index.html
<a href="/thingamabob/index.html">

I never use http:// for internal links, only external.

Of course, this is easier when you have a decent site generation tool because it can take care of organization for you to some extent.

5x54u

11:14 pm on Aug 25, 2004 (gmt 0)

10+ Year Member



Thank you very much.

That is clear - Thank you for the suggestion to site wide maintenance, I will.

skunker

6:59 am on Aug 26, 2004 (gmt 0)

10+ Year Member



I believe in using absolute URLS for every and any link....

It has been successful for me so far.