Https versions of my site whats the next move?

I have noticed my hosts have created a https version of my site; so in cpanel I now have a https and a http URL.

Currently both http and https work and I was wondering what I should do next. I did not ask for this but I know it is the way things are going with people like Google pushing for it.

Should I setup a permanent redirect URL from any http addresses to the https ones?

So my site can now be reached with: ( SSL site version )

If it were me, I’d check with the hosts and ask them the same question. They should already have a prepared statement.

It seems some versions of cpanel are automatically creating https versions of sites with a free SSL certificate. Which is what happened to my sites.

My hosts recommended setting up a redirect within cpanel which I did and all my sites now end up with the https version.

Few days earlier I faced the same problem. You will try to redirect your http page to https. You will try those code for redirection

RewriteEngine On
RewriteCond %{HTTPS} off
RewriteRule ^(.*)$ https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

RewriteEngine On
RewriteCond %{SERVER_PORT} !^443$
RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} [R,L]

Thank you for the tip @soumyadip I redirected three sites with cpanel but had a problem with one. My hosts said they added three lines of code to my .htaccess file and I assume there are the ones you suggested.

Test your htaccess code by browsing to different versions of your websites and make sure they all end up to where you want them to

http:// yoursite .com , https:// , https:// www. yoursite .com and http:// www. yoursite .com all end up at https:// url of your choice.

Also make sure you change all links on your site and other places to https as well.

Add https to search console and analytics as well.


It looks as though you’re repeating yourself. Unless I’m missing something, surely you only need one of those sets of directives, not both?

This is what my hosts used which is similar:

RewriteCond %{HTTPS} off
RewriteRule .* https://%{HTTP_HOST}%{REQUEST_URI} [L,R=301]
RewriteCond %{HTTP_HOST} !^www. [NC]
RewriteRule .* https://www.%{HTTP_HOST}%{REQUEST_URI} [L,R=301]

Yes, but what that’s doing is enforcing HTTP if it is off and enforcing the non-www version.

I have no idea what it does but it works; do you have a better method and I will give it a go?

No, I thought you were comparing your with that of soumyadip’s.

No; I had just posted my version for others to use if they wanted.

1 Like

This topic was automatically closed 91 days after the last reply. New replies are no longer allowed.