RewriteRule for verify now works w/o trailing /
authorDylan Lloyd <dylan@psu.edu>
Thu, 10 Mar 2011 21:43:38 +0000 (16:43 -0500)
committerDylan Lloyd <dylan@psu.edu>
Thu, 10 Mar 2011 21:43:38 +0000 (16:43 -0500)
.htaccess

index 7bf3682..d06e66b 100644 (file)
--- a/.htaccess
+++ b/.htaccess
@@ -7,7 +7,7 @@ RewriteRule ^captcha/?$ /index.php [L]
 
 RewriteRule ^note/([^/\.]+)?/?$ /index.php?note=$1 [L]
 RewriteRule ^note/([^/\.]+)?/comments/?$ /index.php?comments=true&note=$1 [L]
-RewriteRule ^note/([^/\.]+)?/comments/verify/?$ /index.php?comments=true&verify=true&note=$1 [L]
+RewriteRule ^note/([^/\.]+)?/(comments/)?verify/?$ /index.php?comments=true&verify=true&note=$1 [L]
 
 RewriteRule ^notes/?$ notes/page/1
 RewriteRule ^notes/page/?$ notes/page/1