RewriteEngine On
# Real files (css, js, images) are served as-is; everything else goes to index.php.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [QSA,L]

# Uploads up to 50 MB (config/app.php 'upload_max'). PHP-FPM hosts read public/.user.ini instead.
<IfModule php_module>
  php_value upload_max_filesize 50M
  php_value post_max_size 52M
  php_value max_input_time 300
</IfModule>

# Never serve the PHP settings file above.
<Files ".user.ini">
  Require all denied
</Files>
