Redirect .php pages
I need to redirect pages with .php extension to without. Like www.magrudy.com/mystore.php to www.magrudy.com/mystore
Use the following
RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /([^/\ ]+/)*([^.\ ]+\.)+(php|html?)\ HTTP
RewriteRule ^(([^/]+/)*[^.]+)\.(php|html?)$ http://www.magrudy.com/$1 [R=301,L]