The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Changing over to https
So, finally started the fun of getting our site switched over to https. Forum is working, most of the rest of the site is getting the sacred padlock.
But the forum does have ONE image that is mysteriously showing up as not cooperating. Quote:
I've checked the Styles CSS and MainVar section... nada! I've dug through the php files. Cannot find it. So, the friendly folks at vBulletin suggested using a 301 redirect and that will work, but now I want clean up as much as I can, and I gots to know, just where can I find where vBull sets the "thread icons" ?>? Edit: Wayne+Omnibus pointed me in the right direction, vBulletin Options/Thread Display Options |
#2
|
|||
|
|||
Tip: create a style replacement variable in your styles to replace http://www.subsim.com with https://www.subsim.com
|
#3
|
||||
|
||||
Thanks, Dave. Yes, we did that. It was that one remaining default icon setting, I could swear I went through all the VB settings, I don't know how I missed that one, it was pretty obvious.
|
#4
|
||||
|
||||
Like Wayne said in the other forum it's easy to miss. vB3.x wasn't exactly laid out with ease of use in mind.
|
#5
|
|||
|
|||
In that case, add this to your headers
Code:
<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests"> To sum it up, if a asset can be served via SSL (https) and isn't, then adding this tag will force it to be served via SSL. |
#6
|
||||
|
||||
Quote:
Quote:
I'm still shaking my head My first thought was to check the style templates with a search. Then we checked the StyleVars and CSS. Then I went through the various vBulletin Options, one at a time, looking for anything related to that icon, or anything with an http:// prefix. I must have skipped that one, and never looked back. I spent several hours checking php files, wow, it was so easy but I missed it! |
#7
|
|||
|
|||
Hi Panzer Max, would you mind briefly explaining the steps to switch a vBulletin site to https ?
|
#8
|
|||
|
|||
1. Buy SSL Cert
2. Install on server. 3. Setup apache/nginx whatever your running to serve the site in SSL & force a 301 to https 4. Change forum URL to https in the admincp 5. Fix any issues related to images etc by using to dev console in your browser, which could be smilies, post icons etc. |
#9
|
||||
|
||||
Quote:
At some point in the php upgrade he installed the SSL certificates through cPanel. This explains the nginx change snakes is referring to. I did not make this change, I assume the DC tech did this in conjunction with the SSL certificates, but I will need to confirm. Our admin changed the htaccess file to force the redirect to https Then I got the job of searching the templates for http://www.oursite.com and changing to https://www.oursite.com I also checked all the php pages in the vB folders for any mention of http Last, we have a team who have been going through all 1800 html and php pages on site to find and replace http://www.oursite.com with https://www.oursite.com Then some spot checking with https://www.whynopadlock.com/ |
#10
|
|||
|
|||
Hi snakes1100 and Panzer Max, thanks for the advice and sorry about the late response, juggling too many things at the moment
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|