Forum Moderators: open

Message Too Old, No Replies

Best Dynamic Link Syntax For Google

What is the best dynamic link syntax for google

         

mmurdock

4:01 pm on May 1, 2003 (gmt 0)

10+ Year Member



When creating links to dynamically generated site that uses the query string to load content from a DB what form of link is best...
href="default.asp?id=44" or
href="/?id=44" or
href="?id=44"

All the above work from the browser fine but wonder what google prefers.

Also when linking to a page deeper inside the directory tree am I better off linking to the file explicitly like..
href="/subdir/default.asp" or
href="/subdir" or
href="/subdir/"

any thoughts?

-- Mike

John_Caius

4:36 pm on May 1, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Avoid? in the URL string. Search the forum here for mod rewrite for many helpful discussions.

mmurdock

4:40 pm on May 1, 2003 (gmt 0)

10+ Year Member



I have read a bunch on avoiding? in the URL but since many of these links are dynamically generated I have no choice.. If I have to use a "?" in the URL what is the best format?

-- Mike

doc_z

4:44 pm on May 1, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



My experience is:
- be consistent, i.e. use always the same type of link
- avoid "id" (use "page" or something else instead)

I would use "/subdir". Although, there should be no difference between the different types of links. Also, I would use "default.asp?page=44" (and - if possible - not more than one variable).

takagi

4:46 pm on May 1, 2003 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Having a question mark in the URL is no big problem anymore for Google. It seems to be better not to use the parameter name 'ID'. For example

href="default.asp?id=44"

could be changed into

href="default.asp?code=44"

The name 'ID' suggests an session ID. And SEs don't like session IDs.