I'm about to transition my site from one version to another. i have loads of content and SEO is of the utmost importance. so, for a few hours i'd like to temporarily block crawlers from indexing any of te new content in case something goes wrong and i need to revert back. i'm trying to redirect crawlers with a 503 status code to tel them i'm unavailable at the moment like this:
HttpContext.Current.Items["RealUrl"] = "/sitedown.html";
app.Response.StatusCode = 503;
app.Response.AddHeader("location", "/sitedown.html");
app.Response.End();
Which is the method i use for every other redirect i use (using 301 status codes normaly). it seems that things really mess up with the 503 code. Anyone have any ideas? even a different approach is fine. thanks in advance
HttpContext.Current.Items["RealUrl"] = "/sitedown.html";
app.Response.StatusCode = 503;
app.Response.AddHeader("location", "/sitedown.html");
app.Response.End();
Which is the method i use for every other redirect i use (using 301 status codes normaly). it seems that things really mess up with the 503 code. Anyone have any ideas? even a different approach is fine. thanks in advance