Zend Server Community Edition .htaccess issue

浪子不回头ぞ 提交于 2020-01-05 04:50:30

问题


I am a new user of Zend Server. For some reason Apache is not reading my htaccess file in the project folder. please check my settings:

Document root:C:\Program Files\Zend\Apache2\htdocs\

project folder: C:\Program Files\Zend\Apache2\htdocs\project1\website\

htaccess path: C:\Program Files\Zend\Apache2\htdocs\project1\website.htaccess

Example to of rewrite rule in htaccess:

RewriteRule ^([a-zA-Z0-9\-]*)-([0-9]*)-([0-9]*)\.php$  /project1/website/index.php?cat=$2&page=$3 [L]

changes in httpd.conf file:

LoadModule rewrite_module modules/mod_rewrite.so

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

The index page is working fine http:// localhost/project1/website/


回答1:


You should go to httpd.conf file in your apchachi folder/conf and change AllowOverride none to AllowOverride ALL after restart apachi server.Hope it work.



来源:https://stackoverflow.com/questions/13878243/zend-server-community-edition-htaccess-issue

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!