content/.htaccess @ 5c965ac91280

Fix Disqus code blocks.
author Steve Losh <steve@stevelosh.com>
date Mon, 18 Jan 2010 19:07:54 -0500
parents 0b8539e28640
children bba73143f4b1
{% 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 %}

ErrorDocument 404 /404.html