Get the App
SLTechnology News&Howtos  ›  Network Security  › 

How to do 301 in ssl domain name

Shulou Source: shulou.com Published: 2022-06-01 01:46:28 10月04日 Update

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.

Tags: Certificate server service domain name content number digital certificate identity authentication code copy function that is license passport data data transfer file more organization Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno macOS vpn Xiaomi MariaDB Shulou Tech Info