1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

WordPress force HTTPS and change all HTTP links to HTTPS?

Discussion in 'WordPress' started by TheDataPlanet.com, Apr 25, 2015.

  1. #1
    I just installed SSL on one of my sites. While it's working well on the main site, it's not on the wordpress blog here. I have added this snippet in .htaccess of the blog:

    RewriteCond %{HTTPS} !=on
    RewriteRule ^ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    Code (markup):
    But it's still not fully secure with some assets not in secure mode. I used Httpfox to check all the HTTP requests and all HTTP requests are correctly redirected to HTTPS. Now I don't know why it's still not fully secure. I thought redirecting all HTTP assets to HTTPS would be the deal in this case? Is it?

    If not, it seems the only option left for me is to manually change all HTTP assets (href, src, etc.) to HTTPS across all the content. Is there any easy way to achieve this for the entire WP blog? A plugin? This doesn't seem right to me as I'm afraid it would neglect one asset or two on some of the posts or pages.

    This really sucks.....any help would be appreciated!
     
    TheDataPlanet.com, Apr 25, 2015 IP
  2. billzo

    billzo Well-Known Member

    Messages:
    961
    Likes Received:
    278
    Best Answers:
    15
    Trophy Points:
    113
    #2
    You can read this about switching to https with Wordpress:

    http://www.wpbeginner.com/wp-tutorials/how-to-add-ssl-and-https-in-wordpress/

    It mentions a plugin. In your database, such as in the wp_posts table guid field and possibly elsewhere in the database, URLs are hard-coded as http. Those will have to be changed to https. Look at the plugin or other plugins on Wordpress.org to see if those plugins will do the work for you. In addition to the wp_posts table, there may be changes that have to be made elsewhere in the database. Also check any documentation for plugins you have.

    https://make.wordpress.org/support/user-manual/web-publishing/https-for-wordpress/
     
    billzo, Apr 25, 2015 IP
  3. srivin

    srivin Member

    Messages:
    31
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    38
    #3
    Recently I'm also faced to that problem when I installed CloudFlare SSL .. There's a plugin by cloudflare called "ClodFlare" which fix this mixed content issue. If you are using that , you need also to add a plugin to prevent redirection loop occurd by clodflare plugin.There's a one but I cannot remember the name.Try it.It worked for me.
     
    srivin, May 23, 2015 IP