Created
November 18, 2018 06:48
-
-
Save yamin27/0cf55dd8f5f6a7e2f81ff81da6fd14b8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<IfModule mod_rewrite.c> | |
<IfModule mod_negotiation.c> | |
Options -MultiViews -Indexes | |
</IfModule> | |
RewriteEngine On | |
# Handle Authorization Header | |
RewriteCond %{HTTP:Authorization} . | |
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] | |
# Redirect Trailing Slashes If Not A Folder... | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_URI} (.+)/$ | |
RewriteRule ^ %1 [L,R=301] | |
# Handle Front Controller... | |
RewriteCond %{REQUEST_FILENAME} !-d | |
RewriteCond %{REQUEST_FILENAME} !-f | |
RewriteRule ^ index.php [L] | |
</IfModule> | |
# php -- BEGIN cPanel-generated handler, do not edit | |
# Set the “ea-php72” package as the default “PHP” programming language. | |
<IfModule mime_module> | |
AddType application/x-httpd-ea-php72 .php .php7 .phtml | |
</IfModule> | |
# php -- END cPanel-generated handler, do not edit |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment