I have this structure:
My domain: www.example.com
and this is my laravel's project folder: http://www.example.com/project
and I would like to redirect to http://www.example.com/project/public
I know this answer has been answered before but I try to implement it and not work for me.
Sorry for my english, I just speak spanish
For htaccess
RewriteEngine on
RewriteCond %{HTTP_HOST} ^example.com$ [NC,OR]
RewriteCond %{HTTP_HOST} ^www.example.com$
RewriteCond %{REQUEST_URI} !project/public/
RewriteRule (.*) /project/public/$1 [L]
Put it into your public_html/ or www/ folder where is the root of example.com/
rename /server.php to index.php
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With