<?xml version="1.0" encoding="UTF-8" ?>
<rss version="2.0">
<channel>
<title><![CDATA[A.PAO designSTUDIO BLOG]]></title> 
<link>https://blog.apao.idv.tw/index.php</link> 
<description><![CDATA[A.PAO designSTUDIO 阿保工作室]]></description> 
<language>zh-tw</language> 
<copyright><![CDATA[A.PAO designSTUDIO BLOG]]></copyright>
<item>
<link>https://blog.apao.idv.tw/post//</link>
<title><![CDATA[使用 .htaccess 404訊息 應用處理]]></title> 
<author>apao &lt;apao@www.apao.idv.tw&gt;</author>
<category><![CDATA[Apache]]></category>
<pubDate>Fri, 12 Aug 2011 08:32:51 +0000</pubDate> 
<guid>https://blog.apao.idv.tw/post//</guid> 
<description>
<![CDATA[ 
	在網站重新設計之後， robots.txt 會提供給搜尋引擎伺服器內所有資訊之外，還會把之前的資料記憶在搜尋引擎中，如果點擊結果，卻<br/>沒有內容，就會讓人家覺得網站是否存在，所以404的訊息處理，在網站管理中是個必需要的手段。<br/><br/><div class="code">&lt;IfModule mod_rewrite.c&gt; <br/>RewriteEngine On <br/>ErrorDocument 404 /err/404.html <br/>&lt;/IfModule&gt;</div><br/><br/>這樣之下，網站內所有沒有的檔案或檔案夾，都會出現在 /err/404.html<br/><br/>所以在這裡，就可以做一些較有創意的網頁，來取代 404.html 的內容，<br/>像是以下的圖示，還可以增加企業形象的強調。<br/><br/><a href="https://blog.apao.idv.tw/attachment.php?fid=1198" target="_blank"><img src="https://blog.apao.idv.tw/attachment.php?fid=1198" class="insertimage" alt="點擊在新視窗中瀏覽此圖片" title="點擊在新視窗中瀏覽此圖片" border="0"/></a><br/><br/>當然，為了讓這個 404.html 停留3秒後，再跳至 <a href="http://www.jetoy.com.tw/" target="_blank">http://www.jetoy.com.tw/</a><br/>於是在<strong><</strong>meta<strong>></strong>中加了<strong><span style="color: #0000FF;">3</span></strong>杪後，朓至<strong><span style="color: #0000FF;">http://www.jetoy.com.tw</span></strong>的設定。<br/><br/><div class="code">&lt;meta http-equiv=&quot;refresh&quot;content=&quot;3; url=http://www.jetoy.com.tw&quot;&gt;</div><br/><br/>或是這裡有一些<a href="http://www.smashingmagazine.com/2007/08/17/404-error-pages-reloaded/" target="_blank">創意的404的訊息呈現網頁</a><br/><br/>.htaccess除了以404.html來引導用戶的錯誤操作，另外還可以用301的方式來改變網頁上顯示的路徑，或直接置換階層來替代元來的網站內容。<br/><br/>例：<br/><a href="http://vinta.ws/blog/370" target="_blank">改變網址而不會出現「404 找不到網頁」：301 Redirect 與 .htaccess</a><br/><a href="http://blog.xuite.net/ecfox/elearning/3761258" target="_blank">文件主題：.htaccess 語法解析</a><br/><br/>註：在伺服器的訊息中還有：<br/><br/>&nbsp;&nbsp;&nbsp;&nbsp;400: Bad request<br/>&nbsp;&nbsp;&nbsp;&nbsp;401: Authorization required<br/>&nbsp;&nbsp;&nbsp;&nbsp;403: Forbidden<br/>&nbsp;&nbsp;&nbsp;&nbsp;404: Worng page<br/>&nbsp;&nbsp;&nbsp;&nbsp;500: Internal server error<br/><br/>Tags - <a href="https://blog.apao.idv.tw/tags/%25E4%25BD%25BF%25E7%2594%25A8/" rel="tag">使用</a> , <a href="https://blog.apao.idv.tw/tags/.htaccess/" rel="tag">.htaccess</a> , <a href="https://blog.apao.idv.tw/tags/404%25E8%25A8%258A%25E6%2581%25AF%25E8%2599%2595%25E7%2590%2586/" rel="tag">404訊息處理</a>
]]>
</description>
</item><item>
<link>https://blog.apao.idv.tw/post//#blogcomment</link>
<title><![CDATA[[評論] 使用 .htaccess 404訊息 應用處理]]></title> 
<author> &lt;user@domain.com&gt;</author>
<category><![CDATA[評論]]></category>
<pubDate>Thu, 01 Jan 1970 00:00:00 +0000</pubDate> 
<guid>https://blog.apao.idv.tw/post//#blogcomment</guid> 
<description>
<![CDATA[ 
	
]]>
</description>
</item>
</channel>
</rss>