Hi,
I've been reading up on and playing with mod_rewrite, making it change e.g. ?id=500 into /id/500/ or ?id=500 into id500.htm.
a lot of sites have said it's a lot better for indexing (Google etc.).
Is this true?
Also, is it all safe aswell?
I've been using this code for .htm rewrite:
and this one for /id/50/ rewrite:
Is that all safe etc.?
Thanks
Craig.
I've been reading up on and playing with mod_rewrite, making it change e.g. ?id=500 into /id/500/ or ?id=500 into id500.htm.
a lot of sites have said it's a lot better for indexing (Google etc.).
Is this true?
Also, is it all safe aswell?
I've been using this code for .htm rewrite:
Code:
Options +FollowSymLinks
RewriteEngine on
RewriteRule id(.*)\.htm$ /page.php?id=$1
and this one for /id/50/ rewrite:
Code:
Options +FollowSymLinks
RewriteEngine on
RewriteRule page/(.*)/(.*)/$ /page.php?$1=$2
Is that all safe etc.?
Thanks
Craig.
Last edited: