Ok so I had an endless struggle with this as my project worked fine and then all of a sudden it just stopped working and started giving me the following error.
ERR 1: CakePHP: RedirectController could not be found.
Then after tweaking for quite a while got this.
ERR 2: The requested address '/redirect:/app/webroot/api2.tar/call/call' was not found on this server.
But this was not the URL I was calling I was calling /api2/call. So where did this mysterious redirect come from.
SOLUTION:
I found that it was due to the root of the project having a file called api2.tar.bz2. Once I removed that all was good in "redirect land" again.
AFTER THOUGHT:
It seems you can't have a file (no matter it's extension) in the root of the project (not the app/webroot but the actual root) as it clashes with the .htaccess redirection.
So if I was calling /users/login and I got the same error, first thing to do is check the actual root of the project for any file called users.* before trying to look elsewhere.
By PHPin24 @ 2011-06-30 11:47:41
|