在httpd.conf文件中找到下面这段:
#LoadModule rewrite_module modules/mod_rewrite.so
把前面的 #
删掉:
LoadModule rewrite_module modules/mod_rewrite.so
然后再找到:
<Directory /> Options FollowSymLinks AllowOverride None Order deny,allow Deny from all </Directory>
把 AllowOverride None
改为:AllowOverride all
:
<Directory /> Options FollowSymLinks AllowOverride all Order deny,allow Deny from all </Directory>
最后重启Apache