Permalink
Browse files

Switched the [size] param to the end of the RESTful url

  • Loading branch information...
1 parent 7ff93c0 commit 44f9ae6511a1eaa6832236ba3526b2304bc7d572 @remy committed Jun 7, 2009
Showing with 9 additions and 1 deletion.
  1. +9 −1 .htaccess
View
@@ -12,7 +12,15 @@ RewriteCond %{REQUEST_FILENAME} -d [OR]
RewriteCond %{REQUEST_FILENAME} -f
RewriteRule .* - [L]
-# NOTE valid usernames are: Only use letters, numbers and '_'
+# handle early adopters until they've had time to change their site
+RewriteCond %{HTTP_REFERER} ^http://(www\.)?joshrussell\.com\/.*$ [NC,OR]
+RewriteCond %{HTTP_REFERER} ^http://(www\.)?twaud\.io\/.*$ [NC,OR]
+RewriteCond %{HTTP_REFERER} ^http://zubeta\.com/.*$ [NC,OR]
+RewriteCond %{HTTP_REFERER} ^http://blog\.petrusha\.name/.*$ [NC,OR]
+RewriteCond %{HTTP_REFERER} ^http://offline\.twivatar\.org\/.*$ [NC]
RewriteRule ^(mini|bigger|normal|original)/([a-z0-9_]*)/*$ index.php?size=$1&user=$2 [NC,L]
+
+# NOTE valid usernames are: Only use letters, numbers and '_'
+RewriteRule ^([a-z0-9_]*)/(mini|bigger|normal|original)/*$ index.php?size=$2&user=$1 [NC,L]
RewriteRule ^([a-z0-9_]*)/*$ index.php?user=$1 [NC,L]
</IfModule>

0 comments on commit 44f9ae6

Please sign in to comment.