Answer the question
In order to leave comments, you need to log in
How to remove / public from the address bar so that it is perceived as, for example, a controller?
.htaccess/
RewriteEngine on
RewriteRule ^(.*)$ /public/$0
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule (.*) index.php?$0 [L,QSA]
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question