samedi 30 mars 2019

Laravel works on two folders in my domain

I have a Laravel project running on a shared hosting. after adding this .htaccess

RewriteEngine on
RewriteCond %{HTTP_HOST} ^site.com$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www.site.com$
RewriteCond %{REQUEST_URI} !public/
RewriteRule (.*) /public/$1 [L]

Laravel works in site.com/ and site.com/public too.

how to let it work just in the root domain?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire