Jump to main navigation


Archive for October, 2012

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...

Additional content and navigation

Categories

Main navigation menu