Options -MultiViews -Indexes
RewriteEngine On
RewriteRule ^home/(.+\.(?:css|js|png|jpe?g|gif|svg|ico|woff2?|ttf|eot|otf|webp))$ public/home/$1 [L]
RewriteCond %{REQUEST_FILENAME} -f [OR]
RewriteCond %{REQUEST_FILENAME} -d
RewriteRule ^ - [L]
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)/$ /$1 [R=301,L]
RewriteRule ^ index.php [L]
# ensure LSAPI for PHP
SetHandler application/x-lsphp81