phalcon 访问indexcontroller 中只能访问indexaction方法,访问不了testaction
但是可以访问articlecontroller里面的任意方法
看说是apache 的rewrite问题,
但是我的.htaccess文件都是按照文档里面的。
两个.htaccess
第一个
<code>RewriteEngine on RewriteRule ^$ public/ [L] RewriteRule ((?s).*) public/$1 [L]</code>
public目录下面的.htaccess中
<code>RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?_url=/$1 [QSA,L]</code>访问路由 localhost/index/test访问不到,但是localhost/index.php?_url=/index/test可以访问得到
求大神指点
phalcon 访问indexcontroller 中只能访问indexaction方法,访问不了testaction
但是可以访问articlecontroller里面的任意方法
看说是apache 的rewrite问题,
但是我的.htaccess文件都是按照文档里面的。
两个.htaccess
第一个
<code>RewriteEngine on RewriteRule ^$ public/ [L] RewriteRule ((?s).*) public/$1 [L]</code>
public目录下面的.htaccess中
<code>RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php?_url=/$1 [QSA,L]</code>访问路由 localhost/index/test访问不到,但是localhost/index.php?_url=/index/test可以访问得到
求大神指点
每个人都需要一台速度更快、更稳定的 PC。随着时间的推移,垃圾文件、旧注册表数据和不必要的后台进程会占用资源并降低性能。幸运的是,许多工具可以让 Windows 保持平稳运行。
Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号