Zend Server Community Edition .htaccess issue



我是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 文件中的更改:

负载模块rewrite_module模块/mod_rewrite.so

<Directory "C:Program FilesZendApache2/htdocs">
    Options Indexes FollowSymLinks
    AllowOverride ALL
    Order allow,deny
    Allow from all
</Directory>

索引页工作正常http://本地主机/项目1/网站/

您应该转到 apchachi 文件夹/conf 中的 httpd.conf 文件,并在重新启动 apachi 服务器后将 AllowOverride none 更改为 AllowOverride ALL。希望它有效。

最新更新