Skip to content

Instantly share code, notes, and snippets.

@ctrl-freak
Created June 30, 2011 07:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ctrl-freak/1055825 to your computer and use it in GitHub Desktop.
Save ctrl-freak/1055825 to your computer and use it in GitHub Desktop.
Rewrite for TimThumb.php Thumbnail Generation
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^([0-9]+)/([0-9]+)/(.+)$ index.php?src=$3&w=$1&h=$2&q=90&zc=2 [L]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment