我不认为这是一个问题,但我的合作伙伴担心只需服务于24小时的维护页面(因为我们需要恢复数据库,就像意外删除的数据库一样)它可能对我们的谷歌产生负面影响索引/评级?

有帮助吗?

解决方案

I would follow Google’s recommendations on blacking out your website to protest SOPA. Specifically:

  1. Return a 503 Service Unavailable status code for pages which are unavailable.
  2. Make sure that robots.txt does not return a 503 status code.

其他提示

I believe the best way to deal with this is throwing an error code 503 Service Unavailable and use a custom error document to style it more friendly.

You could exclude it from crawlers like Google's by using a robots.txt file in the root of the site for that 24 hour period.

to be sure that there are no problems, you should serve your page using the 503 Service Temporarily Unavailable status. Retry-After can also be set, but i am not sure if the google crawlers care about that.

许可以下: CC-BY-SA归因
不隶属于 StackOverflow
scroll top