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?



from Newest questions tagged laravel-5 - Stack Overflow https://ift.tt/2V1Lt8l
via IFTTT

Aucun commentaire:

Enregistrer un commentaire