Last active
November 18, 2020 13:06
-
-
Save orvigas/c1668ff08ce63b68f1311afad86deedd to your computer and use it in GitHub Desktop.
1&1 Hosting error 500 on Laravel 5.4 API
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] #1&1 Error we need to change index.php to /index.php (I know sounds stupid) | |
</IfModule> |
wtf. Thank you so much for putting this out :)
YW
RewriteEngine On
RewriteBase /
would be possible as well
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
wtf. Thank you so much for putting this out :)