RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_URI} ^/([^.]+)\.(png|jpg|svg|gif|css|js|otf|ico|mp4|webm) [NC]
RewriteCond %{REQUEST_URI} !public/
RewriteRule (.*) public/$1 [L]

RewriteCond %{REQUEST_URI} !public/
RewriteRule ^ public/index.php [QSA,L]

SetEnvIf Authorization "(.*)" HTTP_AUTHORIZATION=$1

DirectorySlash Off