I recently changed from an ASP site to a PHP site and I need to rewrite the old URL style to a new style. For example:
www.mydomain.com/store/list_view.asp?itemid=1000645
To this:
www.mydomain.com/store/list_view.php?id=1000645
so far I can get an ASP request to redirect to a PHP page using this:
RewriteEngine on
RewriteRule ^(.*)\.asp$ /$1.php [R=301,NC]
I'd appreciate any help that you can provide and if possible an explanation of how it works, I'm new to working with redirects and .htaccess.