I’m having an issue with my cakephp project. Anytime I try to access a page other than my login page, I get The requested URL was not found on this server. From my login page, I try to redirect to an action in another controller using:
return $this->redirect([‘controller’ => ‘Home’, ‘action’ => ‘index’]); For some reason, it doesn’t work though. I have checked my .htaccess files and changed the documentroot to the top of the project, but nothing works.
Well, my login page is my base path, and that shows up with no problem. If I use the default base path that comes with cakephp, it works fine. There just seems to be an issue with accessing any other page whether through redirect or typing in the URL myself. Also, my authentication is only done in a controller I created. It’s not using the cakephp Auth system.
The URL definitely exists. I created not only the controller and the action that its being directed to, but also the ctp file that it’s supposed to display.