I have a website in IIS.
That is a sitecore website. So it has core, master and web databases.
Now I want to stop all databases for about 2 or 3 hours for some reasons.
I do not want to stop the website.
Instead, I want to redirect all requests to a certain page.
So, I created a page in its root directory called Error_Page.html.
In web.config,
<customErrors mode="On" defaultRedirect="~/Error_Page.html" />
I add this.
I also turn on HTTP Redirect feature.
And point to that page for all requests.
But when I type in the website, it is giving me the error that it cannot connect to core database.
I know that for sitecore to work, it needs core database.
I want to know is there anyway for me to change so that, it will redirect to that page.
Thanks.
Simply add a page called
App_Offline.htmto the root of the application, and the contents of that page will be served for all requests until you remove/rename it.See here for more information: http://weblogs.asp.net/scottgu/archive/2005/10/06/426755.aspx