Zend mod rewrite not working

徘徊边缘 提交于 2019-12-08 10:28:52

问题


Zend mod rewrite seems to be not working. mysite/index.php/controller/action works, so it must be the mod-rewrite. I verified using the phpinfo that it is loading.

Here is my .htacess file:

SetEnv APPLICATION_ENV development

RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]

回答1:


Is your .htaccess being called? Check in the main apache config that AllowOverride is set to All for this vhost.



来源:https://stackoverflow.com/questions/2054214/zend-mod-rewrite-not-working

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