From dc3c34fb71c469c04be17bf9e98f8043710f5850 Mon Sep 17 00:00:00 2001 From: P. J. McDermott Date: Wed, 30 May 2012 02:19:47 -0400 Subject: 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. --- (limited to '.htaccess') 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] -- cgit v0.9.1