Main Monthly Special About Chingching

htaccess

今天又學到了一樣新的技巧,那就是用 .htaccess 的功能,這技巧有很廣泛的用途。

  • 它可以設定網頁密碼;
  • 設定發生錯誤時出現的文件;
  • 改變首頁的檔案 (index.html) ;
  • 禁止讀取檔案;重新導向文件;
  • 加上 MIME 類別;
  • 防止列出目綠內的檔案等

對我而言,最重要的是可以自設錯誤報告文件,即是 404 File Not Found 那個頁面啦,我現在正積極地設計著那大吉利是專有 404 了。:)

Reference: 網站建置百寶箱有教學

Leave a Reply

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>