CakePHP 路由器仅适用于 '/' 而不是其他,为什么?

CakePHP router only work for '/' not other, why?

我是 cakephp 新手。在我的蛋糕项目中,我无法路由到其他目录。

Router::connect ('/', controller => 'home', action => 'index')

工作正常。但不是其他人。我有(例如 '/view/page', controller => 'view', action => 'page')不工作:

error - directory not found.

感谢任何意见和建议。

谢谢

原因是我没有在我的服务器 apache 配置文件 (.htaccess) 中配置 mod-读写。 它应该是 'AllowOverride All' 在服务器基本目录和网络根目录中。