apche伪静态增加.htaccess文件后出现:
Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
解决办法:
首先检查httpd.conf中mod_rewrite.so模块是否开启,
然后查看虚拟主机的配置
<VirtualHost *:80>
DocumentRoot “E:/webroot/xxx”
ServerName www.xxx.com
</VirtualHost>
<Directory “E:/webroot/xxx”>
Options All
AllowOverride ALL
Allow from all
</Directory>
AllowOverride None 修改为 AllowOverride ALL
重启apache。