Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
Bogusz Pękalski Posted February 24, 2021 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
CoffeeCake Posted February 24, 2021 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?
Management Matt Posted February 24, 2021 Management Posted February 24, 2021 Do you have the .htaccess file uploaded to the /api directory? /api/?core/hello likely works if not.
Bogusz Pękalski Posted February 25, 2021 Author 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
bfarber Posted February 25, 2021 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).
Recommended Posts