TL;DR
I get a 404 (Not Found)
error on calling an API method (api/auth/authenticated
~GET). I only get this on my live-server, not on local and not on any other methods.
The Problem
I use Codeigniter with a Rest-Server library. I have a simple method api/auth/authenticated
(GET) that returns true if the user is logged in and false if not. On the live-server this method gives me a 404 (Not Found)
error. Other calls to the same api class work, for example api/auth/login
(POST) works and api/auth/logout
(GET) works as well.
so how is this possible?
I have tried to delete the .htaccess file, but that didn't work. It can't be a typo since it works locally. Maybe some setting in Apache? But then why do the other methods work just fine?
I would be grateful for any ideas and hints.
my app
- CodeIgniter 3.0.3
- CodeIgniter Rest Server
- AngularJs 1.5 with ngResource for client-side
my server env
- digital ocean droplet
- Ubuntu 14.04
- PHP 5.6.15
- Apache 2.4.7