http://advokat-malov.ru/index.php
http://advokat-malov.ru/
http://advokat-malov.ru/index.html
htaccess で .php または seo リンク (拡張子なし) を .html にリダイレクトする方法
rewriteCond と rewriteRule または redirectmatch を使用して作成する方法
http://advokat-malov.ru/index.php
http://advokat-malov.ru/
http://advokat-malov.ru/index.html
htaccess で .php または seo リンク (拡張子なし) を .html にリダイレクトする方法
rewriteCond と rewriteRule または redirectmatch を使用して作成する方法
これはうまくいきます
# This will change all .php to .html
RewriteEngine on
RewriteBase /
RewriteRule ^(.*)\.html$ $1.php [L]
# This will add .html to all urls that are not in the white list
# White list extensions php, html, css, js, less, jpg, png, gif
RewriteEngine On
RewriteCond %{REQUEST_URI} !\.(php|html|css|js|less|jpg|png|gif)$
RewriteCond %{REQUEST_URI} !/$
RewriteRule ^(.*)$ $1.html