我的 .htaccess 有什么问题


What is wrong with my .htaccess?

谁能看出这有什么问题?

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

当我在浏览器中访问我的网站的根目录时,我被禁止了?

我确定是这个文件,因为当我删除它时,一切正常。

您还需要允许空引用。将以下规则放在其他重写之前

RewriteCond %{HTTP_REFERER} !^$