>  기사  >  백엔드 개발  >  zend framework url路由无效,该怎么解决

zend framework url路由无效,该怎么解决

WBOY
WBOY원래의
2016-06-13 13:27:05789검색

zend framework url路由无效
大虾们,帮帮忙,是什么原因呀?
zend framework 路由无效
localhost/test/test/test 访问报404错误。
localhost/index.php/test/test/test 可以正常显示。

LoadModule rewrite_module modules/mod_rewrite.so 这个也设置
index.php 也设置默认页面了。

------解决方案--------------------
如果

localhost/index.php/test/test/test 可以正常显示。

但是
localhost/test/test/test 访问报404错误。


是不是.htaccess放的位置不对呢?
和index.php是在一个地方的?
内容是
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} -s [OR]
RewriteCond %{REQUEST_FILENAME} -l [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^.*$ - [NC,L]
RewriteRule ^.*$ index.php [NC,L]


如果都正常。就不知道是什么原因了、
不是配置的问题。只能说明代码有问题了


성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.