0
在localhost中,我想重定向,但我不明白是什麼錯誤。htaccess重定向錯誤 - 出現了什麼問題?
RewriteEngine on
RewriteCond %{REQUEST_URI} !/index.php$
RewriteCond %{REMOTE_HOST} !^127.0.0.1
RewriteRule $ namepage.php [R=302, L]
在localhost中,我想重定向,但我不明白是什麼錯誤。htaccess重定向錯誤 - 出現了什麼問題?
RewriteEngine on
RewriteCond %{REQUEST_URI} !/index.php$
RewriteCond %{REMOTE_HOST} !^127.0.0.1
RewriteRule $ namepage.php [R=302, L]
你不能有插圖中的標誌位,它就會被解析爲對RewriteRule
指令單獨的參數:
RewriteRule $ namepage.php [R=302,L]
但重定向不能正常工作,爲什麼? 'Redirect /page1.php page2.php' On localhost – Donovant 2012-07-26 10:51:44
你必須提供更多的信息,你沒有提及任何關於'Redirect'指令的信息。 – 2012-07-26 17:13:37