URL rewrite from /wp-json.php to /api
-
Is it possible to do rewriting from
site.com/wp-json.php/
tosite.com/api/
?I’m using nginx and have such rewrite rule:
rewrite ^/api/(.*) /wp-json.php/$1 break;
But it doesn’t work, but other rewrites do work using identical logic.
Any help?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘URL rewrite from /wp-json.php to /api’ is closed to new replies.