# HG changeset patch
# User Steve Losh <steve@stevelosh.com>
# Date 1263022163 18000
# Node ID 5b93e8663c5751557f1ada0c1088e602933c88d9
# Parent  4e269b3729707fd97ca13ca7e891f5abae4168ff
I hate you, mod_rewrite, I hate you so goddamned much.

diff -r 4e269b372970 -r 5b93e8663c57 content/.htaccess
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/content/.htaccess	Sat Jan 09 02:29:23 2010 -0500
@@ -0,0 +1,19 @@
+{% if GENERATE_CLEAN_URLS %}
+RewriteEngine on
+RewriteBase {{ node.site.settings.SITE_ROOT }}
+
+# Old URLs
+RewriteRule ^blog/entry/(\d+)/(\d\d)/\d+/(.*)/$ /blog/$1/$2/$3/ [R=301,L]
+RewriteRule ^blog/entry/(\d+)/(\d)/\d+/(.*)/$ /blog/$1/0$2/$3/ [R=301,L]
+
+{% hyde_listing_page_rewrite_rules %}
+
+# listing pages whose names are the same as their enclosing folder's
+RewriteCond %{REQUEST_FILENAME}/$1.html -f
+RewriteRule ^([^/]*)/$ %{REQUEST_FILENAME}/$1.html
+
+# regular pages
+RewriteCond %{REQUEST_FILENAME}.html -f
+RewriteRule ^.*$ %{REQUEST_FILENAME}.html
+
+{% endif %}