问题
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