Mobile app version of vmapp.org
Login or Join
Nimeshi995

: 302 & 503 for temporary site down page: what to use for 'retry-after'? 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

@Nimeshi995

Posted in: #302Redirect #Downtime #HttpCode503 #Redirects #Seo

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
www.seomoz.org/blog/how-to-handle-downtime-during-site-maintenance

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Nimeshi995

2 Comments

Sorted by latest first Latest Oldest Best

 

@Kristi941

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.

10% popularity Vote Up Vote Down


 

@Hamm4606531

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.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme