How can I remove index.html from my URL’s?

I do not want index.html (or index.php, etc.) to show up in my URLs.

Use mod_rewrite to remove index.html from the URL. Enter the following into a .htaccess file :

RewriteCond %{REQUEST_URI} index\.html
RewriteRule ^(.*)index\.html$ /$1 [R=301,L]

Leave a Reply

Your email address will not be published. Required fields are marked *