CodeIgniter Forums
What could be causing redirect and error? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: What could be causing redirect and error? (/showthread.php?tid=87495)



What could be causing redirect and error? - DempseyTorhan - 04-25-2023

What could be causing a 303 redirect to the main page instead of accessing the CRUD REST API via routes other than GET? The API routes have been defined and include methods such as POST, PUT, and DELETE. However, when attempting to access them, the user is redirected to the main page instead of the expected API response. Additionally, when attempting to access the API via Guzzle, a 404 Not Found error is received. What could be causing these issues and how can they be resolved? Any help would be appreciated.