Quantcast
Channel: WordPress › Support » Forum: Hacks - Recent Topics
Viewing all articles
Browse latest Browse all 8245

ViktorPontinen on ".htaccess rewrite to only let through REST API requests"

$
0
0

Hello,

Would like to have some tips or guidelines on how to rewrite my .htaccess.
Im building an website which will work as an API and CMS for a mobile app and would to pretty much make the whole front-end unaccessible, except for the API Requests.

I would like the .htaccess file to only let through REST HTTP requests to my API endpoints(http://example.com/wp-json/...) and redirect everything else to /wp-admin/. Also blocking all robots and crawlers would be a bonus.

Anyone who could assist?


Viewing all articles
Browse latest Browse all 8245

Trending Articles