打开conf/httpd.conf
1.找到
LoadModule rewrite_module modules/mod_rewrite.so
去掉前面#号
2.找到
<Directory /> Options FollowSymLinks AllowOverride none Order deny,allow Deny from all </Directory>
改为
<Directory /> Options FollowSymLinks AllowOverride All Order deny,allow Deny from all </Directory>