Xiong Xiaofeng: SEO series, clever use of SSL Certificates to improve site security, beyond the competition

Today, writing this article is mainly because of my sites moved, above the previous server ssl configuration does not turn, led me to a site visit of a problem, today took a look and found that ssl lead.

Know where the problem lies, my first reaction is, do my ssl certificate expired? I did not think the site is due to move, my ssl is the free version of Ali cloud applications, and has not expired, after a through inspection, was found to be the site for a server, ssl configuration wrong.

So I re-configured ssl certificate, really I'm not good at how to configure this, the beginning of the operation is to follow the tutorial Ali found simply impossible, the official tutorial is a good certificate to upload and download files to the server, the I use CentOS system, using Nginx environment, at first I thought it was my own mistake, tossing several times, determined to be the official method does not work.

So can only yourself, but I'm a lazy, only the Internet to find a solution, after a wave of search, test a few is not enough to rely on himself.

I installed the pagoda panel, Nginx configuration of this road leads nowhere, and only for the way to go, and that is set directly on the site, the pagoda is convenient, the site where there is a direct ssl configuration, simply copy the certificate into the article after tests found it.

But the question is, not to consider SEO it? Simply two addresses after I discovered that although you can access the site, but there are two URLs can access, is able to access http and https, but the first thought is 301, so 301 is set in the pagoda site, the discovery settings 301 can not visit, I am sure of this, I used the pagoda for several years, it comes with the 301 really bad.

Can only think of other ways, too, the site 301 is not successful, it is set in Nginx environment, so the Internet to find a method for ssl certificate 301 jumps, write directly on the Nginx configuration file, open website the test is successful, when accessing http automatically jump to https.

This method is very simple, it is thought, will be an experienced webmaster, if a novice, you can contact me focus on advice, I tell you the detailed steps.

Benefits website to enable ssl certificates have a lot of the past two years, Baidu and other search engine companies, the State, Industry and Information Department so strongly advocated website security, and the major online giants are also a positive response, Baidu webmaster platform had said, https access the website will be more popular search engines.

I Baidu is because of this attitude only with https access to the site, mainly in the following benefits

1, site security is better, not easy to be hijacked
2, a more professional feel to the user and safety, protection of user privacy
3, search engines prefer
4, the site will be better indexed
5, more benefits

Up to now, businesses corporate website to enable access https ssl certificate is very small, and this is an opportunity to apply a hurry, the site would be very very much for the help of no use, there are many companies offer free services ssl certificate you do not have to spend a penny can apply.

If you enable https access, but did not do 301, you can still visit http domain name, please contact me, I tell you the method.

Original articles, welcome to reprint, please indicate the source and author

Author: Xiong Xiaofeng

Guess you like

Origin blog.51cto.com/14531488/2435557