Zend mod rewrite not working

2019-06-13 16:38发布

问题:

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.