Skip to content

Instantly share code, notes, and snippets.

@liamzebedee
Created January 15, 2013 23:54
Show Gist options
  • Save liamzebedee/4543309 to your computer and use it in GitHub Desktop.
Save liamzebedee/4543309 to your computer and use it in GitHub Desktop.
RewriteEngine On
RewriteRule ^liam$ /index.php/Liam_Edwards-Playne [NC,L]
RewriteRule ^/?wiki(/.*)?$ %{DOCUMENT_ROOT}/index.php [L]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
RewriteRule ^/?images/thumb/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/thumb.php?f=$1&width=$2 [L,QSA,B]
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-d
RewriteRule ^/?images/thumb/archive/[0-9a-f]/[0-9a-f][0-9a-f]/([^/]+)/([0-9]+)px-.*$ %{DOCUMENT_ROOT}/thumb.php?f=$1&width=$2&archived=1 [L,QSA,B]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment