Take the 2-minute tour ×
Webmasters Stack Exchange is a question and answer site for pro webmasters. It's 100% free, no registration required.

If I want to temporary take down a website but the timeframe could be from 1 day to 1-2 weeks, I know that a 302 redirect (to a down.html page for instance) is best in order to preserve the existing SEO value of the site.

I've also read that one should return a 503 status code for these types of situations but they seems to require setting a 'retry-after' time period.

What If I don't know how long it will be down for? can I leave out this part of the header

http://www.seomoz.org/blog/how-to-handle-downtime-during-site-maintenance

share|improve this question
add comment

2 Answers 2

up vote 3 down vote accepted

While Will is correct that the retry-after value is optional, I'd suggest setting it anyway as a matter of practice. Setting the value has the benefit of being unambiguous.

A 503 without retry-after "should be handled as a 500." If any crawler/script/etc. requesting the documents has been configured to treat 500 differently, then you can't be entirely sure what the end result will be. Including the value means you can at least reasonably presume to get the expected behavior for a 503. You could still be wrong, since the various engines and such don't give away too much information, but the point here is for you to be thorough, in order to reduce potential variables. (See also the robustness principle.)

Not setting the value also leaves it to them to decide when to try again. If you're only down for two days and they decide their behavior is to wait a week, that doesn't help you at all.

Just pick something reasonable. If you say to retry in 2 days, and the error is still there in three that doesn't imply "and never bother again." It just means your suggestion was off.

share|improve this answer
    
I agree. If I were in Miak's position, I would set Retry-After to 1 day. –  Will Peavy Sep 17 '12 at 2:48
add comment

The Retry-After header is optional. It if is specified, then it helps search engines determine when it's appropriate to crawl your site again.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.