Hi guys! I have read all the posts related to this issue, but I could find any clear solutions. So, I had my site from the beginning with HTTP, and everything worked fine. Since I add the following line to .htaccess to redirect everything to HTTPS, the site broke.
<IfModule mod_rewrite.c>
RewriteEngine on
# Ensure the Authorization HTTP header is available to PHP
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
# Uncomment the following lines if you are not using a `public` directory
# to prevent sensitive resources from being exposed.
RewriteRule /\.git / [F,L]
RewriteRule ^composer\.(lock|json)$ / [F,L]
RewriteRule ^config.php$ / [F,L]
RewriteRule ^flarum$ / [F,L]
RewriteRule ^storage/(.*)?$ / [F,L]
RewriteRule ^vendor/(.*)?$ / [F,L]
# Pass requests that don't refer directly to files in the filesystem to index.php
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^ index.php [QSA,L]
# HTTPS Redirect
RewriteCond %{HTTPS} off
RewriteCond %{HTTP:X-Forwarded-SSL} !on
RewriteCond %{HTTP_HOST} ^discuss\.com$
RewriteRule ^/?$ "https\:\/\/discuss\.com\/" [R=301,L]
</IfModule>
What should I do? I have no clue on how to solve this problem. In another related post I have found only dry replies.
It is much appreciated!
BTW, I can't even login now since the HTTPS thing.