Open borzaka opened 6 years ago
I have figured out. I had to modify the outer .htaccess, not the one that inside the public folder:
# This file is - if you set up MINI correctly - not needed.
# But, for fallback reasons (if you don't route your vhost to /public), it will stay here.
RewriteEngine on
RewriteCond %{HTTP_HOST} ^www\.(.*)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
RewriteRule ^(.*) public/$1 [L]
This is the default .htaccess:
Where to put this code, to work?