Skip to content

Instantly share code, notes, and snippets.

@febridev
Created May 17, 2017 06:02
Show Gist options
  • Save febridev/53b82667f852dc0a46a55f1039e064f6 to your computer and use it in GitHub Desktop.
Save febridev/53b82667f852dc0a46a55f1039e064f6 to your computer and use it in GitHub Desktop.
set php_value upload_max_filesize and php_value post_max_size
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</IfModule>
RewriteEngine On
<Files .env>
Order allow,deny
Deny from all
</Files>
# Redirect Trailing Slashes If Not A Folder...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)/$ /$1 [L,R=301]
# Handle Front Controller...
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^ index.php [L]
# Handle Authorization Header
RewriteCond %{HTTP:Authorization} .
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
php_value upload_max_filesize 20M
php_value post_max_size 20M
</IfModule>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment