Website maintenance How to avoid being search engine K station

Source: Internet
Author: User
Keywords Search engine SEO website maintenance

Intermediary transaction http://www.aliyun.com/zixun/aggregation/6858.html ">seo diagnose Taobao guest cloud host technology Hall

This is Dukejia the previous "5 ways to enhance Google's trust in the site," the second piece, very happy to write the first SEO related articles are included. Back to the subject, some sites often have to be temporarily shut down because of routine maintenance or for some reason (hackers), and if a user or search engine visits a temporarily closed site at this time, it will affect the reputation of the site or rank traffic. Therefore completes the website temporarily closes some work, is all Seos's essential lesson.

Below I will teach you how to deal with the site when the temporary shutdown with the user and search engine some triangular relationship! Let the user and the spider know that the website is being maintained

  

When the owner of a restaurant had to temporarily close the restaurant for some reason, the boss would post a notice at the restaurant door informing the customer that the restaurant was temporarily closed and the time of business resumed so that the customer would not mistakenly assume that the restaurant had closed down without coming back. The same reason can also apply to the site, if a site for some reason must be temporarily closed, then the webmaster has the responsibility to inform the spider and the user, and to inform the recovery time, so that spiders and users will visit the site again, rather than mistakenly think that the site has been permanently closed. But how to do to inform the work, not like the restaurant to stick to the notice can be done, the network of the world more complex, so inform users and spiders is an art, below we list two webmaster friends often make mistakes.

Error one, 11518.html "> website shutdown not informed

  

Some webmaster friends, did not do a good job of informing, casually put the site closed, causing users and spiders visit, display 404 pages. In the worst case scenario, users and spiders will mistakenly assume that the site has closed down and not come again, just like a restaurant, close the door without a notice, and the same customers will think the restaurant is closed and won't be coming again.

Error two, single page to tell

Some stationmaster will make a single page, inform users that the site is being maintained, and will be all other pages to point to this page, this is also very unwise behavior, because this is done only to inform the user, and did not notify the spider, so that the spider will only think that other pages have been deleted, only this page. In the detailed introduction of the site temporarily closed the SEO process before the steps, we first review the next few SEO most commonly encountered HTTP status code

The most common HTTP status codes in the SEO process are:

200-The server successfully returned to the Web page

301-The requested page has been permanently moved to the new location. When URLs change, use 301 code. A new URL is saved in the Search engine index.

302-The requested Web page is temporarily moved to a new location. The original URL is saved in the Search engine index.

404-The requested Web page does not exist

503-The server is not currently available (due to overloading or downtime maintenance). Usually, this is only a temporary state.

How to tell users and Web sites are being maintained?

If our website temporarily closes, must inform the user as well as the spider, lets the user and the spider know the website only temporarily closes, but is not permanently closes, thus the user and the spider will partition time again to visit the website, the concrete method is creates one to return the 503 status the file.

1. Create a 503.php file and put it in the root directory of the server

< PHP

Header ("http/1.1 503 Service temporarily unavailable");

Header ("status:503 Service temporarily Unavailable");

Header (' Retry-after:sat, 8 Oct 18:27:00 GMT ');

?>

<! DOCTYPE html>

< html>

< head>

< meta http-equiv= "Content-type" content= "HTML; Charset=utf-8 "/>

Website name </title>

</head>

< body>

< h1> website name

< p> website Maintenance </p>

< p> will resume in 2012/10/8 </p>

</body>

</html>

The 12th sentence tells the search spider Web Station processing temporarily closes the state, the third sentence tells the search spider, the website will reopen on October 8, 2012 18:27, note: Here uses Greenwich Standard TIME.

But the light to put a 503 message to the server is not enough, spiders will visit different pages of the site, so we must guide all spiders to 503.php this page, let spiders know that the entire site is temporarily closed, rather than individual pages. If the webmaster is using a apache/linux server, We just need to set up in the. htaccess, guide all Spiders to 505.php pages, here we want to use 302 jump, note: Do not use the 301 jump here, because 301 is permanent, in this case will destroy the entire site.

2. Guide Spider to 503.php

Save the following code to the. htaccess file and upload it to the site root directory

Options +followsymlinks

Rewriteengine on

Rewritebase/

Rewritecond%{remote_addr}!^00\.00\.00.\.00

Rewritecond%{request_uri}!^/503.php [NC]

Rewriterule, */503.php [r,l]

The last line of [R, tell the spider, this is 302 jump, belongs to the temporary.

  

So we completed the site temporarily closed the deployment, you can safely shut the station! This article source 21 Point http://www.dukejia.com Copyright, reprint please indicate the source

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.