vendredi 29 juin 2018

Deploy Laravel App

I'm trying to deploy my Laravel app and block the access to the others files like .env I put all my laravel app in the www folder, and I add this htaccess :

<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_URI} !^public
RewriteRule ^(.*)$ public/$1 [L]
</IfModule> 

But when I go to my domain url I have all the files.. seem like my htaccess is not working (he's on the Laravel app root)

This is what I get when I go to my website url (this is the www foolder)



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire