mercredi 4 octobre 2017

laravel 5.5 error on deploying to cpanel

I get the error which says:

Additionally, a 500 Internal Server Error error was encountered while trying to use an ErrorDocument to handle the request

All permissions are well set, also the .env file is well configured. But the error still persists.

My .htaccess file looks like below:

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

    RewriteEngine On
    RewriteBase /

    # 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]

    # Handle Authorization Header
    RewriteCond %{HTTP:Authorization} .
    RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
</IfModule>

Anybody with a solution on this!



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire