I currently use the following rule to rewrite .php to .htm RewriteRule ^(.*)\.htm$ $1.php I now want to change this so that it rewrites .php to .html but also redirects any existing .htm urls to .html (search engine friendly redirect).
If i am not wrong you just need to add 'l' to your script like the following RewriteRule ^(.*)\.html$ $1.php i hope this will rename it to .html do let me know it is works....
Yeah that will change it .html, but how can I also ensure existing .htm links that have been indexed by Google are redirected to .html in the proper way?
I am surely google will automatically pick this up... in some time or you can submit a XML sitemap to google for instant change notification