Zend mod 重写不起作用 [英] Zend mod rewrite not working
本文介绍了Zend mod 重写不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
Zend mod 重写似乎不起作用.mysite/index.php/controller/action
有效,所以它必须是 mod-rewrite.我使用正在加载的 phpinfo 进行了验证.
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.
这是我的 .htacess
文件:
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]
推荐答案
你的 .htaccess 被调用了吗?检查主 apache 配置,该 vhost 的 AllowOverride
设置为 All
.
Is your .htaccess being called? Check in the main apache config that AllowOverride
is set to All
for this vhost.
这篇关于Zend mod 重写不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文