0
I’m accessing my website like this: http://localhost/site/public
I’d like to just type http://localhost/site because I want it to work when I put it in the domain too.
Is there any way to resolve this other than by folder changes and yes only via code ? I understand almost nothing from . htaccess.
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
# Redirect Trailing Slashes...
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
</IfModule>
Good afternoon Diego, use the snippet only for html,css,js that can reproduce the problems. Other languages cannot be reproduced by it.
– Guilherme Nascimento