Install SSL certificate Before setting HTTP to HTTPS, please install the SSL certificate. For installation details, see the SSL Certificate Installation Guide Backup Backup is required. If you are not familiar with SSL installation and server configuration, the conversion process may not be so smooth. New version code change After the SSL certificate is installed, the HTTPS version can be accessed. All URLs on the original website need to be changed to the HTTPS version, including links, images, JS, etc., so you may need to modify the article database, templates, plug-ins, etc. Check the source code of the new version page Visit the HTTPS version page, including the home page, column page, inner page, and sitemap, check the source code, and see if there is an HTTP address. Not only the visible part of the page, but also the head part, JS, etc., such as whether the canonical tag in the head has been changed to the HTTPS version? Has the URL in the program generated sitemap been changed to the HTTPS version? 301 steering in the whole station The whole station makes a 301 turn from HTTP to HTTPS. For example, add: RewriteEngine On
RewriteCond %{SERVER_PORT} 80
RewriteRule ^(.*)$ HTTPS://www.exampledemo.com/$1 [R=301,L]
RewriteCond %{HTTP_HOST} ^exampledemo.com [NC]
RewriteRule ^(.*)$ HTTPS://www.exampledemo.com/$1 [L,R=301]
This code is just an example. There are other ways to write it, as long as 301 is implemented. Visit the original HTTP version page and check whether 301 is effective. |