Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Laravel .htaccess error when uploaded to the host #3798

Closed
wants to merge 8 commits into from
Closed

Laravel .htaccess error when uploaded to the host #3798

wants to merge 8 commits into from

Conversation

@hoangsvit
Copy link

@hoangsvit hoangsvit commented Jun 2, 2016

Your .htaccess file like this

<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews
</ IfModule>
RewriteEngine On
# 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}]
</ IfModule>

Somehow the hosts to be up to 500 Internal Server Error

mauri870 and others added 8 commits Mar 28, 2016
[5.1] Fix clear-compiled error during composer installation
[5.1] Backport various changes
@bobrocha

This comment has been minimized.

Copy link

@bobrocha bobrocha commented on 70f8bb6 Apr 17, 2016

How do I contribute to this project?

This comment has been minimized.

Copy link
Contributor

@arcanedev-maroc arcanedev-maroc replied Apr 17, 2016

@bobrocha you need to check the documentation.

@nathanlesage
Copy link

@nathanlesage nathanlesage commented Jun 2, 2016

This error is commonplace on my hosted webspace. It's because they deactivated "Options" (and phpflags) - check the error log of your hosting service and keep watching for a line telling you "Options not allowed" - just comment it out and there shouldn't be any error left.

@hoangsvit
Copy link
Author

@hoangsvit hoangsvit commented Jun 2, 2016

I deleted

<IfModule mod_negotiation.c>
         Options -MultiViews
</ IfModule>

to enable PDO on the host.
Thanks for your support.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

7 participants
You can’t perform that action at this time.
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy