install free ssl certificate or your own to make WordPress site http to https Secure

Three simple steps for setup:

  • Get an SSL certificate (Free via CloudFlare or Purchase from the hosting provider).
  • Activate the plugin Really Simple SSL
  • Enable SSL with one click

Cloudflare One-Click free SSL

the first Internet performance and security company to offer SSL protection free of charge.

After purchasing the SSL Certificate or enabling SSL from the above method Update WordPress Settings.

Step 1:

Log in to your WordPress Dashboard and navigate to Settings > General.

Change both the WordPress address and Site address from http:// to https://.

Step 2:


Edit your .htaccess file.

Using SSH, an FTP client, or your web hosts file manager, open up your .htaccess file and add the following code.

# forward all connections to https
<IfModule mod_rewrite.c>
RewriteEngine On

RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

redirect http to https htaccess wordpress

# BEGIN WordPress
<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /

RewriteCond %{HTTPS} off
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R=301,L]

RewriteRule ^index\.php$ – [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]

# END WordPress

Update your Permalinks.

From your WordPress Dashboard navigate to Settings > Permalinks and click on Save Changes to update the URL protocol.

Update wp-config.php

Again, using SSH, an FTP client, or your web hosts file manager, open up your wp-config.php file and add the following code. Save the file.

# force ssl for all logins
define('FORCE_SSL_ADMIN', true);

Protocol Relative URLs

If you’ve previously hard-coded any internal links that are http:// you will need to manually update those.

Using protocol relative URLs, if the browser is viewing the current page through HTTPS, then it’ll request that asset with the HTTPS protocol, otherwise it will fallback to HTTP.

# standard url

# protocol relative url

Update Google webmaster.

Log in to Google Webmaster Tools and make sure that you’ve added and verified both your old version and new version, in this case, that means your old site and your new Note the (s) in the URL.

Resubmit your sitemap for the new HTTPS version of your site, also select Crawl > Fetch as Google and submit to the index.


Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s