mercredi 5 septembre 2018

Installing laravel in sub folder and rewrite URL with apache

I have a wordpress website in the root folder of my web server. I installed a Laravel app in a subfolder and I added a line that looks like this to the .htaccess file in my root folder:

RewriteRule ^app /public_html/app/public/ [L]

So the URL of my Laravel app looks something like this: www.mywebsite/app

However Laravel is now trying to access the /app route, which is not defined. How can I make Laravel ignore the "/app" segment?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire