Редирект с index.php и index.html на обычную страницу?

Редирект с index.php и index.html на обычную страницу? На данный момент редирект срабатывает только на странице url/index.php , на странице url/page/index.php редирект на url/page/ не срабатывает

<IfModule mod_rewrite.c>
    Options +FollowSymLinks
    RewriteEngine On
    RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
    RewriteRule ^(.*)$ https://%1/$1 [R=301,L]
     
    RewriteCond %{HTTPS} off
    RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]
    
    RewriteCond %{THE_REQUEST} //
    RewriteRule .* /$0 [R=301,L]

    RewriteCond %{THE_REQUEST} ^[A-Z]{3,9}\ /index\.(php|html|htm)\ HTTP/ 
    RewriteRule ^(.*)index\.(php|html|htm)$ https://%{HTTP_HOST}/ [R=301,L]
    
    RewriteCond expr "tolower(%{REQUEST_URI}) =~ /(.+)/"
    RewriteRule [A-Z] %1 [R=301,L]
</IfModule>

Ответы (0 шт):