Replaces HTACCESS rules in nginx rewrites

Here is the rewrite you need to run REST requests on nginx

#Replaces HTACCESS rules in nginx rewrites