Reputation: 472
Im setting up a plugin. Their troubleshoot guide says i should add this to my htaccess. My server runs nginx, so im really not sure how to convert this to nginx setting:
RewriteRule ^api/rest api.php?type=rest [QSA,L]
I have been trying a few things, but nothing has really worked. Any suggestions?
Upvotes: 0
Views: 55
Reputation: 146510
Depending how you are putting it, but the rule would changes to something like below
location /api {
rewrite ^/api/rest /api.php?type=rest break;
}
But if your api.php
is not in the document root folder, then you would need few changes to this
Upvotes: 1