Invision Community 4: SEO, prepare for v5 and dormant account notifications Matt November 11, 2024Nov 11
Posted February 24, 20213 yr 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?
February 24, 20213 yr 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?
February 24, 20213 yr Management Do you have the .htaccess file uploaded to the /api directory? /api/?core/hello likely works if not.
February 25, 20213 yr Author 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
February 25, 20213 yr 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).