MyBB Community Forums
Redirect HTTP to HTTPS protocol - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: 1.8 Support (https://community.mybb.com/forum-175.html)
+--- Forum: General Support (https://community.mybb.com/forum-176.html)
+--- Thread: Redirect HTTP to HTTPS protocol (/thread-186207.html)



Redirect HTTP to HTTPS protocol - Adzdon - 2015-11-10

Hey guys! I was wondering if i could possibly redirect my forum to HTTPS i don't want it HTTP i just bought SSL and i want all my guests and users to get redirected to https with just one click of a button lol if you know what i mean

ThanksĀ  Angel


RE: Redirect HTTP to HTTPS protocol - Dark-Power-Invader - 2015-11-10

Copy it in your .htaccess file
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]

If you dont want it to be www then remove www. from the second line


RE: Redirect HTTP to HTTPS protocol - Adzdon - 2015-11-10

(2015-11-10, 07:59 AM)Dark-Power-Invader Wrote: Copy it in your .htaccess file
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]

If you dont want it to be www then remove www. from the second line

Thanks! But won't that interfere with my subdomains? like i don't want my subdomains to redirect me to my main domain lol


RE: Redirect HTTP to HTTPS protocol - freewilly - 2015-11-10

(2015-11-10, 08:01 AM)Adzdon Wrote:
(2015-11-10, 07:59 AM)Dark-Power-Invader Wrote: Copy it in your .htaccess file
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ https://www.%{HTTP_HOST}/$1 [R=301,L]

If you dont want it to be www then remove www. from the second line

Thanks! But won't that interfere with my subdomains? like i don't want my subdomains to redirect me to my main domain lol


If they are being served from different places then you'll be fine.


RE: Redirect HTTP to HTTPS protocol - Dark-Power-Invader - 2015-11-10

If your subdomain is pointing to same directory of your main domain then this code will redirect your subdomains to https.


RE: Redirect HTTP to HTTPS protocol - Assumpted - 2017-01-28

Ah welp... some of my pages have Secure and some doenst have Secure.. how do you fix it? My forum doesnt have SECURE [SSL] but my admin panel has SECURE.


RE: Redirect HTTP to HTTPS protocol - Dark-Power-Invader - 2017-01-29

(2017-01-28, 06:39 AM)Assumpted Wrote: Ah welp... some of my pages have Secure and some doenst have Secure.. how do you fix it? My forum doesnt have SECURE [SSL] but my admin panel has SECURE.

Kindly open a new thread with detail about your problem, don't forget to include your board URL.


RE: Redirect HTTP to HTTPS protocol - Michael2014 - 2017-01-29

(2017-01-28, 06:39 AM)Assumpted Wrote: Ah welp... some of my pages have Secure and some doenst have Secure.. how do you fix it? My forum doesnt have SECURE [SSL] but my admin panel has SECURE.

this can be caused by unsecured links inside your templates.