Forum Moderators: phranque
I have created a set of rules in my htaccess file in order to get .htm extensions for my web site, pretty simple, these rules are the following:
RewriteRule ^(.*)_lighting-([^-]+)-([^.]+)\.htm$ category.php?manufacturer_name=$1&category_name=$2&page=$3 [NC,L]
RewriteRule ^lighting-families/([^_]+)_([^_]+)_([^_]+)_(.*)-(.*)\.htm$ family_cat.php?family_name=$1&family_id=$2&category_name=$3&category_id=$4&page=$5 [NC,L]
RewriteRule ^([^_]+)_(.*)_(.*)\.htm$ chandelier.php?manufacturer_name=$1&category=$2&light_id=$3 [NC,L]
RewriteRule ^(.*)-([^-]+)-(.*)\.htm$ chandeliers.php?category=$1&page=$2&order=$3 [NC,L]
RewriteRule ^lighting-families/([^_]+)_([^.]+)\.htm$ family.php?family_name=$1&family_id=$2 [NC,L]
RewriteRule ^([^.]+)\.htm$ manufacturer.php?manufacturer=$1 [NC,L]
Everything works perfectly and I have no complaints, however, in the previous version of myweb site some of the above pages where pure php and have already been indexed by google, so I also used a set of simple 301 redirection rules in order to send the rankings to the new pages, these rules are the following :
RewriteRule ^manufacturer.php?manufacturer_id=1$ [mysite.com...] [R=301,L]
RewriteRule ^manufacturer.php?manufacturer_id=2$ [mysite.com...] [R=301,L]
RewriteRule ^manufacturer.php?manufacturer_id=3$ [mysite.com...] [R=301,L]
RewriteRule ^manufacturer.php?manufacturer_id=4$ [mysite.com...] [R=301,L]
RewriteRule ^manufacturer.php?manufacturer_id=5$ [mysite.com...] [R=301,L]
RewriteRule ^manufacturer.php?manufacturer_id=6$ [mysite....] [R=301,L]
I have two questions to ask and believe me, I have already searched for the answers but did not find something really helpfull on the net...unfortunately
1. Will these rules redirect google bot and other bots efficiently?
2. Will these rules also redirect the actual user to the new page (something like RedirectionPermanent or JS redirection)? And if not, what can do to redirect user's browesers along with bots and spiders to the new pages created?
Any help will be appreciated!
Thank you in advance!
See this thread [webmasterworld.com] in our forum library for a method to redirect previously-indexed dynamic links to new static equivalents.
Jim