如何让apache支持.htaccess ?

如何让apache支持.htaccess?

修改apache配置文件(httpd.conf 或者 extra/httpd-vhosts.conf)

将配置:

<Directory >

AllowOverride None

</Directory>

修改为:

<Directory >

AllowOverride All

</Directory>

如果未配置AllowOverride All ,那么apache 将报错:ExpiresActive not allowed here。

posted @ 2012-12-15 12:35  sam139  阅读(134)  评论(0)    收藏  举报