How to do 301 in ssl domain name
Today, let's talk to you about how to do ssl domain name 301. maybe many people don't know much about it. In order to make you understand better, the editor summarized the following content for you. I hope you can get something according to this article.
How to do 301 in ssl domain name
Find the .htaccess file in the root of the website, and when you open it, enter the code
Http301 redirect jump to https
RewriteEngine on RewriteBase / RewriteCond% {SERVER_PORT}! ^ 443$ RewriteRule ^. * $https://%{SERVER_NAME}%{REQUEST_URI} [Lmaine Renew301]
Https access 301 redirected to http
RewriteEngine on RewriteBase / RewriteCond% {SERVER_PORT}! ^ 80$ RewriteRule ^. * $http://%{SERVER_NAME}%{REQUEST_URI} [Lmaine Renew301]
SSL certificate is a kind of digital certificate, which is similar to the electronic copy of driver's license, passport and business license. Because it is configured on the server, it is also known as the SSL server certificate. SSL certificate complies with SSL protocol and is issued by CA, a trusted digital certificate authority, after verifying the identity of the server. It has the functions of server authentication and data transmission encryption.
After reading the above, do you have any further understanding of how to do ssl domain name 301? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.