jeudi 26 janvier 2017

Laravel Lumen App Url

I just successfully installed Lumen in a subdirectory like: example.com/api. However, the app base url appears to be the root domain example.com not example.com/api.

Currently, I have to prefix all of my routes with 'api'. How can I set the base url so I do not have to prefix my routes with 'api'.

To install lumen in a subdirectory, I just added the following to the api/.htaccess file:

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>

Thank you.



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire