Bogusz Pękalski Posted February 24, 2021 Share Posted February 24, 2021 Hi, I'm playing around with REST API (selfhosted). When accessing /api it works. /api but when I try to use e.g. /api/core/hello (or any other) I get 404. Do you know what can be wrong? JohnathonZemlak 1 Link to comment Share on other sites More sharing options...
CoffeeCake Posted February 24, 2021 Share Posted February 24, 2021 This error suggests an issue with your configuration of your web server and not passing those requests to the IPS handler (and instead returning a 404 error). What web server are you using? Link to comment Share on other sites More sharing options...
Management Matt Posted February 24, 2021 Management Share Posted February 24, 2021 Do you have the .htaccess file uploaded to the /api directory? /api/?core/hello likely works if not. Link to comment Share on other sites More sharing options...
Bogusz Pękalski Posted February 25, 2021 Author Share Posted February 25, 2021 17 hours ago, Matt said: Do you have the .htaccess file uploaded to the /api directory? I'll check that. Probably not. Anything after "?" works. /api/?test/test2 18 hours ago, Paul E. said: What web server are you using? Litespeed Web Server Link to comment Share on other sites More sharing options...
bfarber Posted February 25, 2021 Share Posted February 25, 2021 This means the rewriting is not applying to your /api folder. You'll either need to continue adding the path after ? as you see in Matt's example, or you'll need to get URL rewriting applying to the /api folder (which may require the assistance of your host). Link to comment Share on other sites More sharing options...
Recommended Posts