Good day to all, tell me how in .htaccess to make sure that site.ru/page1.html is displayed instead of site.ru/page1. I watched how to do it in a mane 301 redirect, but it didn’t work for me ...
Options +FollowSymlinks RewriteEngine On RewriteBase / # Rewrite www.site.ru -> site.ru -- used with SEO Strict URLs plugin RewriteCond %{HTTP_HOST} . RewriteCond %{HTTP_HOST} !^site\.ru$ [NC] RewriteRule (.*) http://site.ru/$1 [R=301,L] #redirect index.php on / RewriteCond %{THE_REQUEST} ^[AZ]{3,9}\ /index\.php\ HTTP/ RewriteRule ^index\.php$ http://site.ru/ [R=301,L] RewriteRule ^/page1.html$ http://site.ru/page1 [R=301,nc]