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. 

 

  • 89 Los Usuarios han Encontrado Esto Útil
¿Fue útil la respuesta?

Artículos Relacionados

How to Redirect IP to Domain Name using .htaccess

It is important for the SEO to resolve your website and IP address to the same URL and duplicate...