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

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.

0/5 (0 Reviews)
Do we all agree that Coffee is the fuel that feeds the free content creating?
5 Top CRMs Solutions for Real Estate Professionals

About 90% of companies are using CRMs as a scheme to reinforce trust with customers. It’s not a choice but […]

How to Optimize Marketing Content to Get Hits Among International Customers

Whether you operate as a small business or an international company, reaching out to potential customers worldwide is always a […]

How Mobile Apps Can Help In Optimizing Business Growth

With the increase in the use of smartphones all around the world, businesses nowadays are finding new ways to connect […]

10 Greatest Challenges the Virtual Teams are Facing Now

The advance of technology has made it easy to work with different teams across different geographic locations. A ship manufacturer […]

Emerging Trends & Technologies in the Automobile Sector

The automotive industry is changing substantially as the time passes and the technological innovations are the reason behind this change. […]

5 Famous Entrepreneurs & Their Way to Success

 In business, if you want to reap success, it’s important to look at past stories of successful entrepreneurs. This article […]

5 Effective Customer Engagement Strategies

Do you know that customers are the lifeblood of business? And without them, a business cannot survive?  According to a […]

Leave a Reply

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

menu-circlecross-circle