adven7ur3 0 Posted July 19, 2020 Share Posted July 19, 2020 I keep getting this when I have copied over the .htaccess to /api/ The API endpoint is not giving the expected response. Check you followed the instructions correctly. The URL being tested is: https://site.com/api/core/hello In order to use the REST API: Download this file. Upload it to the /api folder in your site's directory (/var/www/site.com/html/api). Rename it to '.htaccess' (with no file name). I've made sure there is a (dot) before the htaccess. Currently running it on NGINX. Any help would be appreciated! Link to comment Share on other sites More sharing options...
Corona 15 Posted July 20, 2020 Share Posted July 20, 2020 .htaccess file supported by Apache, for nginx you must add rewrite rules into your domain's vhost file. For example: location /api/ { try_files $uri $uri/ /api/index.php?$args; } Link to comment Share on other sites More sharing options...
adven7ur3 0 Posted July 29, 2020 Author Share Posted July 29, 2020 On 7/20/2020 at 7:31 AM, Corona said: .htaccess file supported by Apache, for nginx you must add rewrite rules into your domain's vhost file. For example: location /api/ { try_files $uri $uri/ /api/index.php?$args; } Sorry for the late response, but thanks it worked! Link to comment Share on other sites More sharing options...
Recommended Posts