0

誰でもこれで何か問題があると思いますか?

Options +FollowSymlinks

Options -Indexes

RewriteEngine On 
RewriteRule ^random-number-generator$ random-number-generator.php [L] 
RewriteRule ^calculator$ calculator.php [L] 
RewriteRule ^currency-converter$ currency-converter.php [L] 
RewriteRule ^youtube-statistics$ youtube-statistics.php [L] 
RewriteRule ^check-website-status$ /check-website-status.php [L] 
RewriteRule ^your-ip-address$ your-ip-address.php [L] 
RewriteRule ^contact-us$ contact-us.php [L]

RewriteCond %{HTTP_REFERER} !^http://themegahouse.com/.*$ [NC] 
RewriteCond %{HTTP_REFERER} !^http://themegahouse.com$ [NC] 
RewriteCond %{HTTP_REFERER} !^http://www.themegahouse.com/.*$ [NC] 
RewriteCond %{HTTP_REFERER} !^http://www.themegahouse.com$ [NC] 
RewriteRule .*\.(jpg|jpeg|gif|png|bmp)$ http://themegahouse.com/restricted [R,NC,L]

ErrorDocument 401 /not-found.php 
ErrorDocument 403 /restricted.php 
ErrorDocument 404 /not-found.php

ブラウザで自分のサイトのルートにアクセスすると、禁止されていますか?

削除するとすべてが機能するため、このファイルであると確信しています。

4

1 に答える 1

0

空のリファラーも許可する必要があります。次のルールを他の rewriteconds の前に置きます。

RewriteCond %{HTTP_REFERER} !^$
于 2012-05-25T05:38:19.933 に答える