PIT Designs Logo

How to force SSL with .htaccess

I'm the owner and founder of PIT Designs. I love creating digital presence and creative digital solutions for our clients.


Posted 2 years ago on February 22nd, 2019. Last modified on July 22nd, 2019


Tags: |

Up to 35% OFF AliDropship Plugin

When you have SSL enabled (supported by your host provider) it's a good practice to make sure the actual site is running on SSL Secured connection.

To do so, you can force an HTTPS (secured connection) on your website.

Step One

Login to your hosting, and in the Root folder, right click > edit the .htaccess file

 

Step Two

Add these rules in your website's .htaccess file:

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

The .htaccess file needs to be located inside the site's document root folder. If your website is in a sub folder, then the .htaccess should be placed in the corresponding sub folder.

To create or edit the .htaccess file, you can either access the root folder via FTP, or using with the File Manager available in cPanel.


What's .htaccess file?

Lear more about SSL Certificates

Contact us for SSL Certificates

 

Need further assistance?

Read more about SSL Certificates & Website Security. We offer custom solutions per needs.

0/5 (0 Reviews)
Do we all agree that Coffee is the fuel that feeds the free content creating?
Website Copyright Laws for Online Business

If you are starting a business and are working to build and promote it, there are some important things to […]

Wave Video for Social Media Video Marketing

Social media video marketing is the hottest trend and the most effective marketing tool. It helps reach masses of the […]

How Good UX is Designing A Better Future For Online Shopping

Why so many consumers prefer shopping online in 2020? The obvious answer is ‘coronavirus’, but it’s not as simple as […]

How to Start a Successful Online Business

Creating an online business is an exciting endeavour, but it can feel a little overwhelming if you are unfamiliar with […]

5 Benefits of Professional Commercial Cleaning Service

People spend a lot of their time at workplaces, which is why it is essential to keep the workplaces clean […]

5 Tips on Creating Marketing Videos on a Budget

Video marketing is the way forward. Businesses that are failing to leverage the power of video marketing are falling behind […]

Five Essential Law Firm Website Requirements

Five Essential Law Firm Website Requirements The best law firm website is one that lets you accomplish the key purpose […]

Leave a Reply

Your email address will not be published. Required fields are marked *

chevron-downmenu-circlecross-circle