我是Zend Server的新用户。出于某种原因,Apache无法读取项目文件夹中的htaccess文件。请检查我的设置:
文档根目录:C:\Program Files\Zend\Apache2\htdocs\
项目文件夹: C:\Program Files\Zend\Apache2\htdocs\project1\website\
htaccess路径: C:\Program Files\Zend\Apache2\htdocs\project1\website.htaccess
在htaccess中重写规则的示例:
RewriteRule ^([a-zA-Z0-9\-]*)-([0-9]*)-([0-9]*)\.php$ /project1/website/index.php?cat=$2&page=$3 [L]httpd.conf文件中的更改:
LoadModule rewrite_module模块/mod_rewrite.so
<Directory "C:\Program Files\Zend\Apache2/htdocs">
Options Indexes FollowSymLinks
AllowOverride ALL
Order allow,deny
Allow from all
</Directory>索引页工作正常http:// localhost/project1/website/
发布于 2013-08-03 14:39:04
你应该去你的apchachi文件夹/conf中的httpd.conf文件,并在重启apachi server.Hope it work后将AllowOverride none更改为AllowOverride。
https://stackoverflow.com/questions/13878243
复制相似问题