.htaccess how to remove index.html from the URL for example, we have http://flying-p-liners.com/uslugi/ofisnyj-pereezd/index.html and you need http://flying-p-liners.com/uslugi/ofisnyj -pereezd /

I tried it like this

RewriteEngine On 

RewriteCond% {THE_REQUEST} ^ [AZ] {3.9} \ /index.html \ HTTP / RewriteRule ^ index.html $ http: //www.name of the site.ru / [R = 301, L]

nothing happened

    1 answer 1

     DirectoryIndex index.html index.php 

    The first thing that the server will find when requesting https: // your-url / something / , for example, it will be returned