Solved: 9 Years, 2 Months, 3 Weeks ago Redirect HTTP to HTTPS protocol
#1
Solved: 9 Years, 2 Months, 3 Weeks ago
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
Happy New Year!
Reply
#2
Solved: 9 Years, 2 Months, 3 Weeks ago
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
[Image: cafaf18ba2.gif]
FileSquid is under development
[Image: trk1]
Reply
#3
Solved: 9 Years, 2 Months, 3 Weeks ago
(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
Happy New Year!
Reply
#4
Solved: 9 Years, 2 Months, 3 Weeks ago
(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.
Reply
#5
Solved: 9 Years, 2 Months, 3 Weeks ago
If your subdomain is pointing to same directory of your main domain then this code will redirect your subdomains to https.
[Image: cafaf18ba2.gif]
FileSquid is under development
[Image: trk1]
Reply
#6
Solved: 9 Years, 2 Months, 3 Weeks ago
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.
Reply
#7
Solved: 9 Years, 2 Months, 3 Weeks ago
(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.
[Image: cafaf18ba2.gif]
FileSquid is under development
[Image: trk1]
Reply
#8
Solved: 9 Years, 2 Months, 3 Weeks ago
(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.
Hey man, what's up?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)