How to Redirect From HTTP to HTTPS CentOS Web Panel CWP Hosting

You can redirect from HTTP to HTTPS by adding the following code in your .htaccess file, If it is not there, you can make a file and after add it:

RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ https://www.example.com/$1 [R,L]

Where, example.com is your domain name. 

  • CWP, CentOS Web Panel, CWP Hosting, HTTP to HTTPS, HTTP to HTTPS Redirection, HTTP to HTTPS Redirection .htaccess, HTTP to HTTPS Redirect CWP, CentOS Web Hosting HTTP to HTTPS Redirection
  • 567 Users Found This Useful
Was this answer helpful?

Related Articles

How do I order additional IP addresses?

  HostNamaste offers additional IPs with valid justification as per ARIN / APNIC / RIPE...

How to install Attracta SEO Plugin On cPanel/WHM Server Freely

Hey Guys,Before we begin to install this plugin, let's first understand what is this plugin all...

What OpenVZ OS Templates do you Provide?

HostNamaste offers a wide range of Operating Systems (OpenVZ templates) for our VPS users. If...

Server Error 503 Service Temporarily Unavailable

Cause PHP-FMP Service is stopped or not running from the PHP version you have set. Resolution...

How to Update WHMCS Manually

  1) Download the latest version of WHMCS from here: https://download.whmcs.com 2) Extract the...