All for Joomla All for Webmasters

Let's Play With Coding…

Add SSL and secure WordPress with HTTPS

Hello Coders…

Today lets see how to configure wordpress to have https based request.

So many have a question that first of all what is SSL and why HTTPS?

We share our personal information with different websites whether it’s making a purchase or for logging in on daily basis. In order to protect the data transfer, a secure connection needs to be created. That’s when SSL and HTTPS come in.
HTTPS or Secure HTTP is an encryption method that secures the connection between users’ browser and your server. This makes it harder for hackers to eavesdrop on the connection. Each site is issued a unique SSL certificate for identification purposes. If a server is pretending to be on HTTPS, and it’s certificate doesn’t match, then most modern browsers will warn the user from connecting to the site.

Recently, Google also announced that they will be using HTTPS and SSL as a ranking signal in their search results. This means that using HTTPS and SSL will help improve your site’s SEO.

Where to get SSL?

Many hosting service provider give SSL certificate for websites. We also provide SSL certificate as our product you can contact us we will provide SSL certificate around INR 850 (USD 12) or else you can approach other provider like godaddy. Some web hosting providers provide hosting with free SSL. we also provide web hosting with free SSL. You can have service through such providers to have SSL for your domain.

Mostly SSL configuration can be done with support of hosting service provider so we are much concentrated towards configuring wordpress for accepting HTTPS connection

How to setup wordpress to use HTTPS connection?

If you installing wordpress through softaculous then there is an option to select http / https during installation process so that it will write .htaccess file based on that.

If you installed directly through manual installation or already existing site then you can navigate to settings -> general settings under which you can see wordpress address and site address which in default have http you need to change it to https as given in below screenshot

Once it done your wordpress site will be redirect to https from http.

You can also do this by adding following code in .htaccess above wordpress .htaccess rules.

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteCond %{SERVER_PORT} 80 
RewriteRule ^(.*)$ https://www.yoursite.com/$1 [R,L]
</IfModule>

change yoursite.com to your domain name. This will make your wordpress site redirect to https. Even for normal site also this will make redirection to https.

Thanks for reading… Happy coding…

Drop your feedback in comments…

Related posts

Rotate Text using CSS

While developing web pages we some time require to rotate text of images present...

Leave a Comment

Leave a Reply