DZone Snippets is a public source code repository. Easily build up your personal collection of code snippets, categorize them with tags / keywords, and share them with the world

Snippets has posted 5883 posts at DZone. View Full User Profile

Apache 1.3: 301 Redirect .../index.html To .../

08.27.2009
| 3280 views |
  • submit to reddit
        RewriteCond %{THE_REQUEST} ^.*/?/index\.html(\ |\?)
RewriteCond %{IS_SUBREQ} false
RewriteRule ^(.*)/index\.html $1/ [R=301,nosubreq,last,qsappend]