0
を見つけていない場合、私はこのURLを持っているパスに403アドオンフォルダをリダイレクト私はこのような403 eroorhtaccessファイルは
私のhtaccessのロックを取得する場合にのみ、パスにimages
を「追加」方法が必要です:
RewriteEngine On
RewriteCond %{QUERY_STRING} ^width=\d+&height=\d+&image=(.*)
RewriteRule^%1?
RewriteEngine On
RewriteCond %{THE_REQUEST} imageget\.php [NC]
RewriteRule^- [NC,L]
#disallow access to other php files
RewriteCond %{THE_REQUEST} .+\.php [NC]
RewriteRule^- [F,L]
ので、この部分/nofeymata/102.jpg
がランダムであるとき、このURLの私のアプリをさがす
http://pic.site.com/nofeymata/102.jpg
と
http://pic.site.com/images/nofeymata/102.jpg
に403ウィルredrictを取得する任意のフォルダも、私は
をしようと試みてきたを提出することができます
RewriteEngine On
RewriteBase/
RewriteCond %{REQUEST_URI} !^/images[NC]
RewriteRule^/images%{REQUEST_URI} [R=403,L]
thi sが働いているが、私はこの
http://pic.site.com/images/nofeymata/102.jpg
を照会するとき、私は、私はそれをfigreカント感謝を
http://pic.site.com/images/images/nofeymata/102.jpg
を入手します!
これを追加しますか?要求されたURLの下にエラーコードを出力するのではなく、なぜリダイレクトしたいのですか?これにより、クライアントが403ステータスコードを実際のURLに適切に関連付けることができなくなります。 – CBroe
画像のためのちょうどcdn – shlomicohen