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 3 years ago on February 22nd, 2019. Last modified on July 22nd, 2019

Related To:

Tags: |

pCloud Lifetime 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.

Do we all agree that Coffee is the fuel that feeds the free content creating?
Dive Yourself into the World of Fashion and their Logo Diaries

One often gets inspired by some people’s fashion looks. The demeanor in which they carry themselves is loaded with fascination. […]

How Low Code Development Is Changing Mobile App Industry

These days building apps is on the high rise for both enterprises and non-programmers without any engineering efforts. In other […]

Office Removals, Workplace Relocation, Commercial & International Moving

Relocating a commercial space or an office is not everyone's cup of tea. It involves a lot of technicalities and […]

The Importance of UI & UX for Digital Marketing Strategy

It’s a well-known fact that both paid and organic media strategies can bring a certain level of success, but even […]

5 Ways To Build Brand Authority in Your Field

As a business owner, you should always be looking for ways to build up your reputation and brand authority. Having […]

5 Tax Breaks Nonprofits Should Know About

Every business needs to manage money effectively well to be profitable, but non-profits need to be even more diligent due […]

6 Tips to Improve the Functionality of Your WordPress Build

Table of Contents Introduction:1: Powerlessness. 2. Install Plugins Selectively 3. Use proper Designs 4. Utilize HTML5 5. Make Your Route Simple & Obvious 6. Basic […]

menu-circlecross-circle