この URL を有効にしたい:
http://mysite.com/images/?url=20121206/test.jpg&zoom=120&f=g
これに:
http://mysite.com/images/20121206/test.jpg?zoom=120&f=g
/images/ フォルダー内の .htaccess ファイル
私は多くの正規表現をグーグルで検索しましたが、機能していません..助けてください!
または、画像フォルダーの外でこれを行うことができますか?
これは機能しますか?
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule images/(.*) images/index.php?url=$1 [QSA,L]
これは私が信じている仕事をするはずです。
Options +FollowSymlinks
RewriteEngine On
RewriteCond %{QUERY_STRING} url=(.*)
RewriteRule /images/ /images/%1 [QSA, R]