phalcon 访问IndexController 中只能访问indexAction方法,访问不了t 财富值44

2016-11-01 17:15发布

phalcon 访问IndexController 中只能访问indexAction方法,访问不了testAction
但是可以访问ArticleController里面的任意方法
看说是Apache 的rewrite问题

但是我的.htaccess文件都是按照文档里面的。

两个.htaccess

第一个
<IfModule mod_rewrite.c>

RewriteEngine on RewriteRule  ^$ public/    [L] RewriteRule  ((?s).*) public/$1 [L]

</IfModule>

public目录下面的.htaccess中

<IfModule mod_rewrite.c>

RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^(.*)$ index.php?_url=/$1 [QSA,L]

</IfModule>

访问路由 localhost/index/test访问不到,但是localhost/index.php?_url=/index/test可以访问得到

求大神指点

友情提示: 此问题已得到解决,问题已经关闭,关闭后问题禁止继续编辑,回答。
该问题目前已经被作者或者管理员关闭, 无法添加新回复
1条回答

访问不到提示啥????

一周热门 更多>