.htaccess 線上產生器

網站位址:http://www.htaccessredirect.net/

Rewrite to www:網址轉向至www,比如輸入unethost.com自動轉至www.unethost.com 
301 Redirect File:檔案301永久轉址,比如unethost.com/123.txt轉至unehost.tw/index.php 
301 Redirect Directory:資料夾301永久轉址,比如tw-blog.com轉至unethost.com 
Caching:快取設定 
Password Protect File:htpasswd檔案設置 
Stop hotlinking:防盜連設定 
Custom 400 error:自訂400錯誤頁面網址 
Custom 401 error:自訂401錯誤頁面網址 
Custom 403 error:自訂403錯誤頁面網址 
Custom 404 error:自訂404錯誤頁面網址 
Custom 500 error:自訂500錯誤頁面網址 
Block users by IP:限制或允許使用者IP位址 
Block bad bots:限制搜尋引擎搜尋 
Change default directory page:變更預設首頁 
Prevent viewing of .htaccess:禁止查看.htaccess檔案 
Prevent directory listing:禁止查看資料夾檔案列表
  • 2 Users Found This Useful
Was this answer helpful?

Related Articles

我該如何追蹤線路節點?

Q: 我該如何追蹤線路節點呢?   A: windows用戶,請開啟電腦內的命令提示字元, 請執行 tracert ip (或是加上網址, 比如說 tracert...

如何將「主域名」指向「子資料夾」

Q: 我在主機空間裡,額外設定一個資料夾,該如何將我的域名,直接指向到該資料夾內呢?A: 關於這部份個設定,可以透過 .htaccess 設置這功能,具體詳情請點我。

custom php.ini

http://forums.cpanel.net/f5/individual-php-ini-files-php-fcgi-php-cgi-160398.html

如何透過.htaccess檔來做限制密碼登入及IP白名單

123456789101112 AuthType Basic AuthName "Secure site" AuthUserFile...