302 & 503 for temporary site down page: what to use for 'retry-after'?

302 & 503 for temporary site down page: what to use for 'retry-after'? - If a page has internal and external outgoing links to redirecting URLs, it’s returning 3xx (301, 302, etc.) HTTP status codes standing for redirection. This issue means that the page does not exist on a permanent or temporary basis. It appears on most of the popular web browsers, usually caused by a misconfigured website. However, there are some steps you can take to ensure the issue isn’t on your side. You can find more details about redirecting URLs by reading the Google Search Central overview. In this article, we’ll go over how you can fix the 302 & 503 for temporary site down page: what to use for 'retry-after'? error on your web browser. Problem :


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


Solution :

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.



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.


We hope that this article has helped you resolve the seo, redirects, 302-redirect error in your web browsers. Enjoy browsing the internet uninterrupted!

Comments

Popular posts from this blog

How to redirect to any domain [duplicate]

"302 found" for index page bad for SEO?

Create redirect from url like www.example.us/?p=100&option=