Invision Community 4: SEO, prepare for v5 and dormant account notifications By Matt Monday at 02:04 PM
pilotguy Posted May 2, 2016 Posted May 2, 2016 So, I'm considering switching over to a secure server very soon. My questions about this are EXACTLY what files need manual changing or configuration to properly implement HTTPS. System files obviously. Not talking 3rd party stuff. What are the steps in changing any files mentioned in point 1. What actions are taken within the ACP? Ive read certain posts where all forum POSTS are not accessible after transition. What's the solution for this. Are there any known 3rd party apps that don't play nice with a secure server. Sorry if if this has been answered elsewhere but I haven't been able to find a good solid detailed guide on this. I'm running 4.1.11
opentype Posted May 2, 2016 Posted May 2, 2016 50 minutes ago, pilotguy said: So, I'm considering switching over to a secure server very soon. My questions about this are EXACTLY what files need manual changing or configuration to properly implement HTTPS. System files obviously. Not talking 3rd party stuff. What are the steps in changing any files mentioned in point 1. Activate SSL on your server. Change the base URL in global_conf.php to https Set URL forwarding from http to https for every URL via htaccess 50 minutes ago, pilotguy said: What actions are taken within the ACP? Clear the cache. Optional but recommended: Turn on the image proxy so embedded external images are served via SSL from your site. 50 minutes ago, pilotguy said: Ive read certain posts where all forum POSTS are not accessible after transition. What's the solution for this. manually editing and saving each post so the proxy can kick in use a third party plugin
pilotguy Posted May 2, 2016 Author Posted May 2, 2016 4 minutes ago, opentype said: manually editing and saving each post so the proxy can kick in Manually editing/saving EACH post? Oh my... I have A LOT of posts. Does that 3rd party app linked also do that. Seems its related to images.
opentype Posted May 2, 2016 Posted May 2, 2016 52 minutes ago, pilotguy said: Manually editing/saving EACH post? I should have been more precise: Each post with insecure content embedded in it.
pilotguy Posted May 2, 2016 Author Posted May 2, 2016 Understood - Now the 3rd party app reference makes a bit more sense. Thanks @opentype!
IveLeft... Posted May 3, 2016 Posted May 3, 2016 If you have altered or added any menu bar items (urls) make sure you swop these over to https as well - I forgot about this
pilotguy Posted May 9, 2016 Author Posted May 9, 2016 Ok - I'm having an issue with the redirect and need some clarification. I have edited the .htaccess file in my root directory. Not the directory in which IPS resides (public_html) but the directory before that. RewriteCond %{HTTP_HOST} www.example.net$ RewriteRule ^/?$ "https://www.example.net" [R=301,L] However, if I enter in HTTP://www.example.net I get no redirect. It simply goes to the HTTP site with no redirect to the secure HTTPS version. To get to that I need to manually enter HTTPS. If I place the above code in my site directories htaccess file I get a 500 internal server error. What am I doing wrong here?
IveLeft... Posted May 9, 2016 Posted May 9, 2016 8 minutes ago, pilotguy said: I found the problem and it is fixed now. Glad you got it sorted, for your info to re-direct all http to https this is what i use in .htaccess # all http to https RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI}
pilotguy Posted May 9, 2016 Author Posted May 9, 2016 Ok - I searched my provider itself for redirects and this is the code that was suggested. Seems to work. rewritecond %{http_host} ^coolexample.com [nc] rewriterule ^(.*)$ http://www.coolexample.com/$1 [r=301,nc]
sobrenome Posted May 24, 2016 Posted May 24, 2016 I have noticed and checked a clear worse TTFB. On webpagetest, the TTBF of my community used to be about 500ms. With HTTPS it has jumped to 1000ms. Have I done something wrong eventually or was it expected?
Rhett Posted May 24, 2016 Posted May 24, 2016 To clarify there is no need to setup any https forwarding at all, with IPS4 it will pick this up from your conf_global.php file, so all that is needed are the steps below. 1. setup ssl on your site/host 2. edit your conf_global.php file, change http to https 3. Log into the admincp and run the first step of the support tool to clear the cache.
sobrenome Posted May 24, 2016 Posted May 24, 2016 I have removed the forwarding. There was no difference on TTBF. Is there any other thing I could check?
Rhett Posted May 24, 2016 Posted May 24, 2016 1 hour ago, sobrenome said: I have removed the forwarding. There was no difference on TTBF. Is there any other thing I could check? I personally wouldn't get hung up on testing data, it will vary by testing site, I would stick with real world loading times, and response times of your site. It's loading quickly for me in testing, are you seeing any issues? (ignoring the testing site data)
sobrenome Posted May 24, 2016 Posted May 24, 2016 Yes, I can see a little freeze before pages loading. It did not happen before SSL.
Rhett Posted May 24, 2016 Posted May 24, 2016 Did you run the support tool on your site after changing the conf file? it's still loading a profile image from http. I was testing the site on this topic in the first post too, sorry about that, your site is pretty slow, but it's a long ways from me too. Your forum home page for example has been sitting for 20 seconds trying to load, so there are other issues at play here it seems.
sobrenome Posted May 24, 2016 Posted May 24, 2016 Yes, I have run the support tool. For me it's not that slow... 20 secs... it's about 2 secs freezing before start to low the next page.
hmikko Posted June 1, 2016 Posted June 1, 2016 On 9. mai 2016 at 6:50 PM, Cloud 9 said: Glad you got it sorted, for your info to re-direct all http to https this is what i use in .htaccess # all http to https RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} I used that code but now if someone clicks on link to my site it redirects to HTTPS but to /index.php not URI it should. I believe IPS mod_rewrite has to be changed somehow?
Kit_L Posted June 2, 2016 Posted June 2, 2016 Joining this thread to keep informed; newbie admin here.
sobrenome Posted June 2, 2016 Posted June 2, 2016 Seems that the problem to TTFB was with Cloudflare. They have 3 types of configuration: FLEXIBLE, FULL and FULL STRICT. The last 2 cause problems with TTFB.
hmikko Posted June 3, 2016 Posted June 3, 2016 I have sorted it out with Support. No need to any htaccess redirect.
sobrenome Posted June 4, 2016 Posted June 4, 2016 3 hours ago, hmikko said: I have sorted it out with Support. No need to any htaccess redirect. Do I need to apply this patch on 4.1.12.1?
Recommended Posts
Archived
This topic is now archived and is closed to further replies.