Good day,
First: My project uploaded to Http, it works well and all routes is working, no error found.
Second:
We wanted to uploaded to Https, Now the site give error
Whoops, looks like something went wrong. then in my F12 console it says that Failed to load resource: the server responded with a status of 500 (Internal Server Error)
My htacess
<IfModule mod_rewrite.c>
<IfModule mod_negotiation.c>
Options -MultiViews -Indexes
</IfModule>
RewriteEngine On
> # Force SSL
> RewriteCond %{HTTPS} !=on
> RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
# 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>
I read in the group says that add this to my htacess.
# Force SSL RewriteCond %{HTTPS} !=on RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
The question is, how can i fix this and my all routes work fine. thanks in advance..
via Chebli Mohamed
Aucun commentaire:
Enregistrer un commentaire