# Redirect everything to public folder
RewriteEngine On
RewriteRule ^(.*)$ public/$1 [L]

# If the request is for a file or directory that exists, serve it directly
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

# Otherwise, send the request to the Laravel index.php
RewriteRule ^ index.php [L]
