1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

[HOW TO] Free SSL & WordPress website

Discussion in 'White Hat SEO' started by pxoxrxn, Apr 23, 2015.

  1. pxoxrxn

    pxoxrxn Supreme Member

    Joined:
    Dec 21, 2011
    Messages:
    1,398
    Likes Received:
    2,072
    Everybody knows that Google is now using HTTPS as a ranking signal. But not everyone knows that you can get a free SSL certificate from CloudFlare and set it up in just a couple of minutes. After a painful hour of trying to figure this out I would like to share with you exactly how its done.

    I'm going to assume that you have CloudFlare operating on your website, if not, do that. Your setup will be different depending on how you set DNS record so I'm not going to advice on that.

    Once you have Cloudflare setup, you'll need to install two plugins to your WordPress website.
    https://wordpress.org/plugins/cloudflare/
    https://wordpress.org/plugins/cloudflare-flexible-ssl/

    The first plugin allows you to control several Cloudflare settings from within your WordPress install, the second stops the redirect loop that may occur.

    After activating the plugins, go to the settings for the cloudflare plugin and fill in the details. To find what you should put into these boxes, click the (Get this?) links next to each input. Your settings should look something like this.

    [​IMG]

    On your WordPress website, navigate to Settings > General
    Change your WordPress Address (URL) and Site Address (URL) to be https. That should look like this.
    [​IMG]

    At this point, your website should log you out and force you to log back in under the https version. However, when you navigate to your website it doesn't automatically go to the http version and this is crap.

    Go back to CloudFlare and click CloudFlare settings under the options cog. Look for something that says 'Page Rules'. Rember Ctrl+F is find, use it.

    In these settings I want to make every page go to HTTPS so my rule is mydomain.com/* the * is a wildcard for any URL. Click 'Always use https' and click add rule. Your settings should look like this.
    [​IMG]

    Your website will now force your https beliefs on everyone that visits. [​IMG]

    If you are getting red padlocks, use this tool: https://www.whynopadlock.com/

    Enjoy
     
    • Thanks Thanks x 57
  2. sam.hunt0710

    sam.hunt0710 Jr. VIP Jr. VIP

    Joined:
    Feb 22, 2011
    Messages:
    4,738
    Likes Received:
    1,765
    Gender:
    Male
    Occupation:
    Owner Of a IT Comapny
    Location:
    India
  3. pxoxrxn

    pxoxrxn Supreme Member

    Joined:
    Dec 21, 2011
    Messages:
    1,398
    Likes Received:
    2,072
    You're welcome, I hope it saved you some time :)
     
  4. Titans

    Titans Jr. VIP Jr. VIP

    Joined:
    Oct 20, 2013
    Messages:
    2,211
    Likes Received:
    582
    Occupation:
    SEO
    Location:
    In BHW
    Nice share. Thank you :)
     
  5. Boriss

    Boriss Supreme Member

    Joined:
    Nov 7, 2009
    Messages:
    1,427
    Likes Received:
    562
    Location:
    Inside a Monitor
    Awesome. Thanks a lot for this.
     
  6. Yasin Rishad

    Yasin Rishad Junior Member

    Joined:
    Mar 2, 2015
    Messages:
    170
    Likes Received:
    18
    Occupation:
    Business
    Location:
    Bangladesh
    Home Page:
    Many thanks to you dude for this valuable post
     
  7. Nut-Nights

    Nut-Nights Jr. VIP Jr. VIP

    Joined:
    Jun 20, 2013
    Messages:
    5,018
    Likes Received:
    3,200
    Location:
    Hell
    Home Page:
    Going to setup this on my all sites :) Its awesome share. +rep

    Guys dont do this shit if you dont know technical stuff, you will fuck lots of things.
     
    Last edited: Apr 25, 2015
  8. pxoxrxn

    pxoxrxn Supreme Member

    Joined:
    Dec 21, 2011
    Messages:
    1,398
    Likes Received:
    2,072
    Sorry I can't quote the post above. It depends what your rewrite rules say already. If you're redirecting www to no-www, write your rule for domain.com/* if you're rewriting to www, write the rule the other way around.
     
  9. boselect8

    boselect8 Newbie

    Joined:
    Feb 3, 2015
    Messages:
    6
    Likes Received:
    0
    This is great! Thanks..
    Is there a known way to make it with godaddy?
     
  10. danielmartin

    danielmartin BANNED BANNED

    Joined:
    Apr 9, 2015
    Messages:
    15
    Likes Received:
    2
    This is a wonderful thread, thanks for sharing this to us!
     
  11. pxoxrxn

    pxoxrxn Supreme Member

    Joined:
    Dec 21, 2011
    Messages:
    1,398
    Likes Received:
    2,072
    Of course, you just need to add your domain to cloudflare and update your name servers accordingly. You'll find a guide if you Google it.
     
    • Thanks Thanks x 1
  12. lord1027

    lord1027 Elite Member

    Joined:
    Sep 20, 2013
    Messages:
    3,177
    Likes Received:
    2,238
    Great tutorial, I've been using Cloudflare on many of my sites and never knew this could be possible.
     
  13. Zwielicht

    Zwielicht Moderator Staff Member Moderator Jr. VIP

    Joined:
    Aug 31, 2013
    Messages:
    6,565
    Likes Received:
    11,707
    Gender:
    Male
    Occupation:
    Private Investigator
    Location:
    Riverside, California
    Home Page:
    I remember reading about Cloudflare's SSL but I never went through with installing it on any of my sites. I suppose I'll give it a try right now, but I've been having problems with Cloudflare lately.
     
    Last edited: Apr 25, 2015
  14. soccerlover

    soccerlover Jr. VIP Jr. VIP

    Joined:
    Jun 12, 2014
    Messages:
    3,178
    Likes Received:
    1,680
    Gender:
    Male
    Occupation:
    Seo Analyst :D
    Location:
    ♥♥♥ BHW ♥♥♥
    Home Page:
    Is SSL available with free account ? or do we need to upgrade it?
     
  15. Zwielicht

    Zwielicht Moderator Staff Member Moderator Jr. VIP

    Joined:
    Aug 31, 2013
    Messages:
    6,565
    Likes Received:
    11,707
    Gender:
    Male
    Occupation:
    Private Investigator
    Location:
    Riverside, California
    Home Page:
    When I was signing up, Cloudflare stated that the free accounts could use Flexible SSL.
     
  16. soccerlover

    soccerlover Jr. VIP Jr. VIP

    Joined:
    Jun 12, 2014
    Messages:
    3,178
    Likes Received:
    1,680
    Gender:
    Male
    Occupation:
    Seo Analyst :D
    Location:
    ♥♥♥ BHW ♥♥♥
    Home Page:
    Okay, I got it.

    I've just one slight issue.
    The home page is working fine with https, whereas further pages giving 404.
    I've set the wildcard properly as well.
    Can anyone help me please?
     
    • Thanks Thanks x 1
  17. cryptons

    cryptons Supreme Member

    Joined:
    Jun 12, 2013
    Messages:
    1,272
    Likes Received:
    456
    Occupation:
    Developer,social marketer
    Nice method buddy!
     
  18. Cyriac

    Cyriac Junior Member

    Joined:
    May 19, 2013
    Messages:
    173
    Likes Received:
    74
    Location:
    ★★★ BHW ★★★
    Good method bro thanks :D :D
     
  19. pxoxrxn

    pxoxrxn Supreme Member

    Joined:
    Dec 21, 2011
    Messages:
    1,398
    Likes Received:
    2,072
    What sort of problems are you having? I think most problems come from the website. I've had problems with cacheing plugins and CF for example. The problems are easily fixed if you can isolate them.

    In WordPress go to Settings > Permalinks and then scroll to the bottoms and click save changes. Don't get confused by thinking that the boxes are already ticked, so you don't need to click save changes, do it anyway. Make sure your .htaccess is writeable, if it is not you will get an error. If this didn't work, come back and let me know what's happening.
     
  20. Zwielicht

    Zwielicht Moderator Staff Member Moderator Jr. VIP

    Joined:
    Aug 31, 2013
    Messages:
    6,565
    Likes Received:
    11,707
    Gender:
    Male
    Occupation:
    Private Investigator
    Location:
    Riverside, California
    Home Page:
    I've fixed most of the issues already, but now I can't seem to change the grey padlock with the yellow triangle over to a green one on the homepage. Every other page on the site that I installed Cloudflare on has a green padlock except the homepage for some reason, so I'm still looking for whatever is causing the issue.

    Anyway, thanks again for reminding me about Cloudflare's SSL!
     
    Last edited: Apr 26, 2015