Options +FollowSymLinks
Options -Indexes

<IfModule mod_authz_core.c>
    Require all granted
</IfModule>
<IfModule !mod_authz_core.c>
    Order allow,deny
    Allow from all
</IfModule>

<IfModule mod_rewrite.c>
    RewriteEngine On

    # If the requested file or directory does not exist inside public/storage,
    # hand over to Laravel so routes/web.php can stream from storage/app/public.
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule ^ ../index.php [L]
</IfModule>

# Never execute scripts from uploaded files
<FilesMatch "\.(php|phtml|phar|cgi|pl|asp|aspx|jsp|sh)$">
    Require all denied
</FilesMatch>
