網站暫停使用頁面用法 --App_offline.htm

  • 1902
  • 0

網站維運部分

網站維運部分

最近筆者在處理前台問題,更版的時候,會有一些前台USER使用問題的,都會反映筆者公司...筆者接手現有系統,自己再多加一個App_offline.htm

以便未來在更版以前,先發布網站更版中...納入更版流程一環裡面,這功能只適用於IIS部分,強化使用者體驗

  1. 上傳App_offline.htm到你要更版的網站路徑
  2. 發布更新web site
  3. 移除App_offline.htm
<!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
	<html xmlns="http://www.w3.org/1999/xhtml"><head>
		<title>
			Sample Site Name - Site Maintenance
		</title>	
		<style tyle="text/css">
		 	body { text-align: center; padding: 150px; }
			h1 { font-size: 50px; }
			body { font: 20px Helvetica, sans-serif; color: #333; }
			article { display: block; text-align: left; width: 650px; margin: 0 auto; }
			a { color: #dc8100; text-decoration: none; }
			a:hover { color: #333; text-decoration: none; } 
		</style>
		<meta content="JavaScript" name="vs_defaultClientScript">
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7">
	</head>
	<body>
		<article>
			<h1>目前網站更新中</h1>
			<div>
			<p>很抱歉,目前網站進行更新的工作,請稍後...敬請見諒!</p>
			<p>&mdash; 快樂有限公司</p>
			</div>
		</article> 
	</body>
	</html>

正常部分

不正常、掛上它的話

老E隨手寫