I have made code for a page to work as .html in the ur with this code. RewriteRule ^page.html$ page.php Code (markup): the .php page is indexed on search engines and linked on some sites, sure it still works but it would make two different addresses for same page, but not so SEO-friendly? I tried to add this, redirect 301 /page.php http://www.host.com/page.html Code (markup): so the .php would be redirected, but it seems it didn't work and firefox reports thats its a endeless loop, could anyone help me getting this work please?
Try this code: RewriteEngine On RewriteBase / RewriteCond %{REQUEST_URI} ^.*page.php$ [NC] RewriteRule .* page.html [R=301,L,QSA] RewriteRule ^page.html$ page.php