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]
如果都正常。就不知道是什么原因了、
不是配置的问题。只能说明代码有问题了
0
0
相关文章
PHP扩展怎么编写测试用例_PHP扩展测试用例编写步骤【规范】
本地php环境怎么绑定域名_本地域名映射设置教程【模拟】
PHP 中 isset() 不能直接作用于函数调用结果的解决方案
PHP怎么单元测试函数_PHP单元测试函数步骤【PHPUnit】
PHP怎么创建一个元素的数组_PHP创建单元素数组的方法
本站声明:本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系admin@php.cn
热门AI工具









