在维护期间重定向站点访问者 [英] Redirect site visitors during maintenance

查看:107
本文介绍了在维护期间重定向站点访问者的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个网站将关闭几个小时,而第三方(CC处理器)执行维护(换句话说,该机器仍将在线/运行)。我已经创建了一个maintenance.aspx页面。起初,我只是将新页面添加为IIS(Server 2003,IIS 6.0)中的默认文档,但这仍然有可能让某人直接导航到真正的登录页面。

I have a site that will be "down" for a few hours while a third party (CC processor) performs maintenance (in other words, the machine will still be online/running). I have already created a maintenance.aspx page. At first, I was going to simply add the new page as the default document in IIS (Server 2003, IIS 6.0), but this still leaves the possibility of someone directly navigating to the real login page.

是否有某种方法可以将给定站点中的所有页面重定向到新的维护页面。此外,该网站将从凌晨2点至凌晨4点停止,所以对于额外的奖励积分,有没有办法使用系统时钟自动执行此操作(并防止我不得不为此)?

Is there someway to do a redirect of all pages in a given site to the new maintenance page. Also, the site will be down from 2am-4am, so for extra bonus points, is there a way to automatically do this using the system clock (and prevent me from having to be around for this)?

我打算在登录期间发出错误以防止任何访问,但我宁愿用户甚至无法做到这一点。

I am planning on giving an error during login to prevent any access, but I'd rather the users not even be able to make it that far.

建议?

推荐答案

使用 App_Offline.htm

这篇关于在维护期间重定向站点访问者的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆