Redirect HTTP to HTTPS

To redirect the http request to https, open the file manager in cPanel. Look for a file named “.htaccess,” If it is not there, then look inside hidden contents, else create a new one.

Open the file and add the following lines:

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
  • 0 Users Found This Useful
Was this answer helpful?

Related Articles

Clearing cookies/Cache on your Browser

Clearing cookies/Cache on your BrowserHello Clients,This article will help you to Mass Refresh...

Custom PHP Limits using .user.ini

To add custom php limits like memory limit,Upload limit You can do it from .user.ini file Create...

Enable Gzip To Speedup the Loading time

Hello Mod_deflate is an apache module that can be used to compress data using gzip compression...

Force Password Reset cPanel/WHM

Force Password in cPanel Servers are for security purposes for a certain number of days the...

How to fix CPU Overload/Abuse Issues ?

Hello,This article will help you with fixing CPU Overload/Abuse issues for your cPanel accounts....