Jump to content

IPS RESTful API Issue


adven7ur3

Recommended Posts

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

.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

  • 2 weeks later...
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

Guest
This topic is now closed to further replies.
×
×
  • Create New...