I have a question: Most of my old sites are HTTP and all my backlinks are pointing to HTTP. However I have WHM/CPanel in my Servers and I enabled the AutoSSL/LetsEncrypt already. I do know i type https:// then it would work, but I still don't know how to transfer the HTTP to HTTPS smoothly, with the ranking and backlinks... Could anyone teach me about this please?
I write a .htaccess file and the content is: RewriteEngine On RewriteCond %{SERVER_PORT} 80 RewriteRule ^(.*)$ https://www.mydomain.com/$1 [R=301,L] And i see it works once I place it into the root folder. So is this the solution? Do I need to do something else? Thanks a lot for advice
A simple RewriteEngine On RewriteCond %{HTTPS} off RewriteRule (.*) https://%{HTTP_HOST}%{REQUEST_URI} Code (markup): should do. PS You may see a slight rating fluctuation, but as a rule, if anything, it should improve your ratings.
Contact to your hosting provider for the same or the hosting company from which you want to take the SSL services and they will tell you the whole process how to enable it, and, .htacces file redirection to HTTPS is another part of the process but before that, you have to complete another process first.