标签: cakephp redirect url-routing cakephp-2.0
在我的控制器的beforeFilter中,我检查了这种类型的请求并重定向:
if ( array_key_exists('myparameter',$this->request->query) ) { $this->redirect("http://example.com/".$this->request->url,301); }
但似乎从 routes.php 进行此重定向更像是蛋糕。 那么如何将这个逻辑放在Router::connect?