Removing index.html with mod_rewrite in .htaccess
It's quite easy to remove index.html from a URL with mod_rewrite. Let's say we want to redirect www.dense13.com/index.html to www.dense13.com:
RewriteEngine On
RewriteRule ^index\.html$ / [R=301,L]
Here's a brief explanation, if you're not familiar with .htaccess syntax: Read the full text...
Posted 121029, in: English, Web, .htaccess
Post links: