跳至內容
[[
a10:slb:aflex:http:error-redirect
]]
脆笛酥的家
足跡:
顯示頁面
管理選單
最近更新
網站地圖
登入
搜尋
本頁是唯讀的,您可以看到原始碼,但不能更動它。您如果覺得它不應被鎖上,請詢問管理員。
====== Redirect to Somewhere when Response 4xx or 5xx ====== * When server response 4xx or 5xx, then redirect(aka:302) to somewhere. ===== Requirement ===== * Service Type: HTTP / HTTPS ===== Code ===== <code tcl> when HTTP_RESPONSE { if { [HTTP::status] starts_with "2" || [HTTP::status] starts_with "3"} { # Just fast pass that to decrease process } elseif { [HTTP::status] contains "404"} { HTTP::redirect "http://www.au.edu.tw" } elseif { [HTTP::status] contains "403"} { HTTP::redirect "http://www.au.edu.tw" } elseif { [HTTP::status] contains "402"} { HTTP::redirect "http://www.au.edu.tw" } elseif { [HTTP::status] contains "400"} { HTTP::redirect "http://www.au.edu.tw" } elseif { [HTTP::status] contains "500"} { HTTP::redirect "http://www.au.edu.tw" } elseif { [HTTP::status] contains "501"} { HTTP::redirect "http://www.au.edu.tw" } elseif { [HTTP::status] contains "503"} { HTTP::redirect "http://www.au.edu.tw" } } </code>
顯示頁面
舊版
多媒體管理器
回到頁頂