.htaccess被忽略了?

看看你的virtual host是不是有这个错误:

引用
<Directory "/home/page_url/www/">

    AllowOverride None

你要去掉AllowOverride None. 如果 apache版本较低,还要加上AllowOverride All

引用

Syntax: AllowOverride All|None|directive-type [directive-type] …

Default:AllowOverride None (2.3.9 and later), AllowOverride All (2.3.8 and earlier)

http://stackoverflow.com/questions/5210820/apache-server-ignores-htaccess

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.