Results 1 to 5 of 5
  1. #1
    Join Date
    Nov 2009

    WordPress force HTTPS and change all HTTP links to HTTPS?

    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]
    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!

  2. #2
    Registered User GreenLionNet's Avatar
    Join Date
    Apr 2015
    1. Go to the admin dashboard.
    2. Point you mouse over Settings and click General.
    3. Where it says WordPress Address (URL) and Site Address (URL) replace the http:// part with https:// for both of them.
    4. Click Save Changes

  3. #3
    Senior Member
    Join Date
    Nov 2018
    Back-Up Your Website. ...
    Implement Your SSL Certificate. ...
    Add HTTPS to the WordPress Admin Area. ...
    Update the Site Address. ...
    Change Links in Your Content and Templates. ...
    Implement 301 Redirects in . ...
    Test and Go Live. ...
    Update Your Site Environment.

  4. #4
    Join Date
    Sep 2020
    To redirect your domain from HTTP to HTTPS you can use plugin which is simplest method. You can use "Wp-super cache plugin" or there are various other plugin are available.

    You can also add below code in your .htaccess file.
    RewriteEngine On
    RewriteCond %{HTTPS} off
    RewriteRule^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
    You can check more about Wordpress http to https redirection

  5. #5
    Senior Member
    Join Date
    Feb 2022
    Force SSL for administrator and sign in pages
    When I first installed my SSL certificate, my initial thought was to only put my administrator and other protected pages behind HTTPS. This can be done by opening your wp-config.php file at the root of your WordPress directory and including the following:

    define('FORCE_SSL_ADMIN', true);
    Many other tutorials may tell you to include define('FORCE_SSL_LOGIN', true); but it is my understanding that this is deprecated. Using FORCE_SSL_ADMIN seemed to be enough for me.

    At this point, every time you visit http:/ /blog .example. com/wp-admin you should be redirected to an https version.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

  Find Web Hosting      
  Shared Web Hosting UNIX & Linux Web Hosting Windows Web Hosting Adult Web Hosting
  ASP ASP.NET Web Hosting Reseller Web Hosting VPS Web Hosting Managed Web Hosting
  Cloud Web Hosting Dedicated Server E-commerce Web Hosting Cheap Web Hosting

Premium Partners:

Visit to discuss the web hosting business, buy and sell websites and domain names, and discuss current web hosting tools and software.