This works for any wordpress directory.
If you have a WordPress website and have noticed that some thing has added index.html or a plugin has added it.
Example would be https://pinguisweb.com/about/index.html.
The code below will redirect to https://pinguisweb.com/about/ and drop index.html
RewriteEngine On RewriteBase / RewriteRule ^index\.php$ - [L] RewriteRule ^index\.html$ / [R=301,L] RewriteRule ^(.*)/index\.html$ /$1/ [R=301,L]
to your .htaccess file
How to redirect subdirectory to url with htaccess file
This will redirect all references to Car-Sales directory to the car-sales file. RedirectMatch 301 ^/Car-Sales/.*$ https://pinguisweb.com/car-sales/