htaccessでリダイレクトすることは可能ですか?
http://example.com/redirect.php?url=http%3A%2F%2Fanother.com%2Fsmiley.gif
urlパラメータへ、
http://another.com/smiley.gif
ご意見をお聞かせください。
回答:
回答№1は0あなたはこれを使うことができます:
RewriteEngine on
RewriteCond %{THE_REQUEST} /redirect.php?url=.+([^/]+.gif)s [NC]
RewriteRule ^ http://another.com/%1? [NE,L,R]
これはリダイレクトされます /redirect.php?url=foobar/foobar.gif に http://another.com/foobar.gif .