diff options
author | P. J. McDermott <pjm@nac.net> | 2012-05-30 02:19:47 (EDT) |
---|---|---|
committer | P. J. McDermott <pjm@nac.net> | 2012-05-30 02:19:47 (EDT) |
commit | dc3c34fb71c469c04be17bf9e98f8043710f5850 (patch) | |
tree | 828a296f4f20320d390ea861fac21c718ce00b28 | |
parent | 1ffa946beb073737752983fc68a5c3ad12c1e45e (diff) |
Handle paths ending in "/".
Apache HTTPD suddenly changed its behavior after one of the previous two
commits. It now sends an HTTP 301 redirection when it finds a directory
whose name matches the requested resource, before mod_rewrite ever gets
used.
But it's cool, Apache -- I wanted to do this kind of URL rewriting
anyway. No worries, bro.
-rw-r--r-- | .htaccess | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -3,5 +3,6 @@ XBitHack on RewriteEngine on RewriteRule ^$ index.html [L] +RewriteRule ^([^.]*)/$ $1.html [L] RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^.]*)$ $1.html [L] |