I was working with this framework and with this htaccess:
structure
config/
logs/
www/
app/
bootstrap/
public/
packages/
.htaccess
index.php
...
vendor/
.htaccess
...
htaccess
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{REQUEST_URI} !^public
RewriteRule ^(.*)$ public/$1 [L]
</IfModule>
But I got a shared hosting where I can not change root, and I ended up leaving the structure this way:
config/
logs/
www/
folder/
app/
bootstrap/
public/
packages/
.htaccess
index.php
...
vendor/
...
.htaccess
In htaccess I left the same and also made several changes, but none worked. How would I do in that case? The page stays white with no error or anything.
UPDATE: my .htaccess folder inside the public folder, looks like this:
<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>