Forums

Unfortunately no one can be told what FluxBB is - you have to see it for yourself.

You are not logged in.

#1 2020-09-10 01:02:27

Recognition
Member
From: Toronto, Canada
Registered: 2017-01-20
Posts: 79
Website

htaccess

RewriteEngine On
RewriteBase /
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.allr6.com/$1 [R,L]
RewriteCond %{HTTP_HOST} ^www.allr6.com [NC]
RewriteRule ^(.*)$ https://allr6.com/$1 [L,R=301]

I'm trying to make it so that if someone types in www.allr6.com or www.allr6.com/discuss or allr6.com allr6.com/discuss or http:// in front of it, it will automatically redirect to https:// however its not doing that.

Any ideas what could be wrong with my htaccess?

Offline

#2 2020-09-10 02:18:24

Visman
Member
From: Siberia
Registered: 2010-07-10
Posts: 1,383
Website

Re: htaccess

Try

RewriteEngine on
RewriteCond %{HTTP_HOST} !^allr6\.com$ [NC,OR]
RewriteCond %{HTTPS} !=on
RewriteCond %{SERVER_PORT} !^443$
RewriteRule ^(.*)$ https://allr6.com/$1 [QSA,R=301,L] 

If it doesn't work, then __https://allr6.com/discuss/admin_statistics.php?action=phpinfo
Apache Environment section
And see variable names that point to https

Last edited by Visman (2020-09-10 02:57:29)

Offline

Board footer

Powered by FluxBB