fcb06c420476

Fix the extra / problem in .htaccess.
[view raw] [browse files]
author Steve Losh <steve@stevelosh.com>
date Fri, 15 Jan 2010 19:41:31 -0500
parents 738729a5055d
children 5aed689b7896
branches/tags (none)
files content/.htaccess

Changes

--- a/content/.htaccess	Thu Jan 14 22:58:29 2010 -0500
+++ b/content/.htaccess	Fri Jan 15 19:41:31 2010 -0500
@@ -3,8 +3,8 @@
 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]
+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 %}