配置http和https站点,.htaccess设置在http站点起作用,https站点不起作用
经检查,httpd.conf 中的Directory设置了AllowOverride None
http站点的Directory配置了AllowOverride All
https站点的Directory未配置AllowOverride,使用了httpd.conf 中的Directory设置。
解决方法:
1、httpd.conf 中的Directory 修改为 AllowOverride All
2、https站点的Directory 设置 AllowOverride All