| Joshua Colson 2005-08-23, 6:56 pm |
| On Tue, 2005-08-23 at 20:40 +0300, Octavian Rasnita wrote:
> Hi,
>
> I have read that Google doesn't like the links that have too many variables
> in them like ?id=...&id2=...&id3=... and so on.
>
> I would like to use mod_rewrite in order to be able to use nice looking
> links like http://www.site.com/val1/val2/val3/val4.html
>
> Is there a better way to get the variables from those URLS than splitting
> the PATH_INFO environment variable?
That is the whole point of using mod_rewrite. You write a rule that will
internally rewrite the URL http://www.site.com/val1/val2/val3/val4.html
to something like
http://www.site.com/perl-bin/script...=val3&var4=val4
Then you have access to all of them via CGI and Google is happy with the
link.
HTH
--
Joshua Colson <jcolson@giant.com>
Sr. Systems Administrator
Giant Industries, Inc
P: (480) 585-8714
F: (480) 502-6641
|