2015-11-04 68 views

回答

0

你有一個錯字:改變HTT_HOSTHTTP_HOST

此外,你的第二個RewriteCond只是不必要的複雜的事情。做到這一點,而不是:

RewriteEngine On 

RewriteCond %{HTTP_HOST} ^localhost$ 
RewriteRule fukhtaccess http://server.localhost/index.php [QSA,L] 
0

更好,這項工作很好

RewriteEngine On 
RewriteCond %{HTTP_HOST} ^localhost [NC] 
RewriteCond %{REQUEST_URI} fukhtaccess$ [NC] 

RewriteRule (.*) http://server.localhost/index.php [QSA,L]