Redirect HTTP to HTTPs
If you Using SSL to your site. Your site may not redirect Automatically until Use Redirect code. This Redirection is Successfully working in Godaddy Hosting. Redirect HTTP to https htaccess WordPress, Redirect HTTP to https GoDaddy. Works with Most of the Hostings.
A simple solution to using code in your cPanel to auto redirect any webhost with htaccess. Follow below there is Step by Step methods to How to do Redirection. Careful at .htaccess . Backup before the process. Avoid your SEO errors of redirection problem of SSL, Here you go Easy methods Redirect HTTP to HTTPS.
- Go to
.htaccess
file in Hosting Linux, cPanel - Copy the Below Code
RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
- Paste the code, below Rewrite engine on
- Save and Exit
Note: Take care at .htaccess
copy/Backup the before process
Do not duplicate RewriteEngine On
Make sure that lines beginning RewriteCond
and RewriteRule
immediately follow the already existing RewriteEngine On