Hi there,
This is how users can access to REST API:
https://app.example.com/developers/v1/create/user/
I’d like something like this:
https://api.example.com/v1/create/user/
Here’s my .htaccess:
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteRule ^admin/(.*)$ backend/web/$1 [L]
RewriteRule ^developers/(.*)$ api/web/$1 [L]
RewriteRule ^(.*)$ frontend/web/$1 [L]
</IfModule>
I’ve created a new CNAME (api.example.com points on example.herokuapp.com) on Heroku, so they can access as the following:
https://api.example.com/developers/v1/create/user/
I’d like to remove this “developers”. Is there a way?