Skip to content

Instantly share code, notes, and snippets.

@tejima
Created December 13, 2011 06:58
Show Gist options
  • Save tejima/1470985 to your computer and use it in GitHub Desktop.
Save tejima/1470985 to your computer and use it in GitHub Desktop.
p.pne.jp htaccess
RewriteEngine On
RewriteRule d/([0-9]+)/([0-9A-Za-z]+\.(jpg|png)) ./index.php?src=http://dl.dropbox.com/u/151520/p/$2&q=100&aoe=0&w=$1 [L]
RewriteRule d/cmd/([0-9A-Za-z]+\.(jpg|png)) ./index.php?src=http://dl.dropbox.com/u/151520/p/$1&q=100&aoe=0&w=425&q=100 [L]
RewriteRule d/([0-9]+\.(jpg|png)) ./index.php?src=http://dl.dropbox.com/u/151520/p/$1&q=100 [L]
RewriteRule ss/([0-9]+)/([0-9A-Za-z]+\.(jpg|png)) ./index.php?src=http://dl.dropbox.com/u/151520/p/$2&q=100&aoe=0&w=$1 [L]
RewriteRule ss/cmd/([0-9A-Za-z]+\.(jpg|png)) ./index.php?src=http://dl.dropbox.com/u/151520/p/$1&q=100&aoe=0&w=425&q=100 [L]
RewriteRule ss/([0-9]+\.(jpg|png)) ./index.php?src=http://dl.dropbox.com/u/151520/p/$1&q=100 [L]
RewriteRule ([0-9]+)/([0-9A-Za-z]+\.(jpg|png)) ./index.php?src=http://dl.dropbox.com/u/151520/p/$2&q=100&aoe=0&w=$1 [L]
RewriteRule ([0-9]+\.(jpg|png)) ./index.php?src=http://dl.dropbox.com/u/151520/p/$1&q=100 [L]
RewriteRule cmd/([0-9A-Za-z]+\.(jpg|png)) ./index.php?src=http://dl.dropbox.com/u/151520/p/$1&q=100&aoe=0&w=425 [L]
@tejima
Copy link
Author

tejima commented Mar 28, 2012

index.php はphpthumbを使っている。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment