summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. 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)
commitdc3c34fb71c469c04be17bf9e98f8043710f5850 (patch)
tree828a296f4f20320d390ea861fac21c718ce00b28
parent1ffa946beb073737752983fc68a5c3ad12c1e45e (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--.htaccess1
1 files changed, 1 insertions, 0 deletions
diff --git a/.htaccess b/.htaccess
index 9055669..6c84480 100644
--- a/.htaccess
+++ b/.htaccess
@@ -3,5 +3,6 @@ XBitHack on
RewriteEngine on
RewriteRule ^$ index.html [L]
+RewriteRule ^([^.]*)/$ $1.html [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^([^.]*)$ $1.html [L]