Forum Moderators: Robert Charlton & goodroi

Message Too Old, No Replies

Webmaster Guidelines and &id parameter

how exact is it?

         

Sobriquet

1:31 am on Jan 8, 2006 (gmt 0)

10+ Year Member



Cheking out [google.com...] , i noticed the last line in technical guidelines section

Don't use "&id=" as a parameter in your URLs, as we don't include these pages in our index.

We had been regularly using urls like

mysite.abc/newsphp?id=1234&t_id=1234567 etc

does that mean we are killing our own sites?

or is it specifically about exact term '&id' in the url?

is &id a specific taken text? or the similars too?

doc_z

1:44 pm on Jan 8, 2006 (gmt 0)

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



Although you will find URLs with "&id=" as a parameter [google.com], I would always use mod_rewrite to generate static looking URIs. (It's the safer way.)

Sobriquet

1:56 pm on Jan 8, 2006 (gmt 0)

10+ Year Member



Doc_z, thanks for the suggestion. I tried the mod rewriting but cud nto really get to it. Hope you can help a little.

the urls are

[mysite.com...]

and

[mysite.com...]

I want to rewrite it to

[mysite.com...]

and

[mysite.com...]

respectively

Could anyone help please?

Halfdeck

9:10 pm on Jan 8, 2006 (gmt 0)

10+ Year Member



I'd try something like this (assuming your values are only numerical):

RewriteEngine on
RewriteRule ^([0-9]+)/$ /news.php?id=$1 [L]

RewriteRule ^([0-9]+)/([0-9]+)/$ /news.php?id=$1&t_id=$2 [L]

Make sure all the non-sensical urls e.g. domain.com//1/ gets handled properly.