How are both HTTP and HTTPS versions displaying?

If you can access the SSL version of your blog without a problem, then it means you can redirect all your traffic to it. To do so, take these 2 steps:

  1. Access your database using PhpMyAdmin or any other software you want. Head over to wp_options table, and change to values of siteurl and homeurl to SSL version of your blog (for example https://example.com).

  2. Using any FTP software open and edit your .htaccess file the following way:

This will redirect all traffics to the secure version of your blog.

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /

RewriteCond %{ENV:HTTPS} !=on
RewriteRule ^.*$ https://%{SERVER_NAME}%{REQUEST_URI} [R,L]

#BEGIN WordPress
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
</IfModule>

Remember not to remove the original rules created by WordPress (the lines below #BEGIN WordPress)

Leave a Comment