samedi 2 juillet 2016

404 on all routes after applying SSL on Laravel 5 Project

I've Deployed my project on the server. It's working fine on the http but when I apply SSL certificate, and try to access URLs with https it shows 404 error.

I'm trying to find the solution since hours but no success... Here's my .htaccess file.

.htaccess

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

    RewriteEngine On
    RewriteBase /

    # Redirect Trailing Slashes...
    RewriteRule ^(.*)/$ /$1 [L,R=301]

    # Handle Front Controller...
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteRule ^ index.php [L]

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule (.*) http://ift.tt/29hAgvt [R,L]

</IfModule>

I'm unable to understand the problem... I've also tried editing AppServiceProvider.php but no success...

Every route is throwing 404!



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire