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

10 May, 2013 (13:01) | mod_rewrite | By: sblogadmin

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]

Write a comment