2012-10-08 24 views
1

我試圖改變一些URL與URL重寫(阿帕奇),但沒有任何作品,我只是不明白爲什麼。這是我的.htaccess文件:網址重寫不適用於子文件夾

RewriteEngine on 
RewriteCond %{HTTP_REFERER} !^$ [NC] 
RewriteCond %{HTTP_REFERER} !^http://mywebsite.it [NC] 
RewriteCond %{HTTP_REFERER} !^http://www.mywebsite.it [NC] 
RewriteCond %{HTTP_REFERER} !^http://websiteip [NC] 
RewriteRule ^.*$ http://www.mywebsite.it/ [R,L] 
ErrorDocument 404 /404.php 
RewriteRule ^home$ /t01/index.php [L] 
RewriteRule ^chi-siamo$ /t01/chisiamo.php [L] 
RewriteRule ^faq$ /t01/faq.php [L] 
RewriteRule ^login$ /t01/login_splash.php [L] 
RewriteRule ^logout$ /t01/logout.php [L] 

There is t01/ in front of the files because I'm trying to see if it works in a subfolder. 

回答

1

我解決了一切,把我的文件放在主目錄中,並通過清理我的規則(不再是t01 /)。

相關問題