跳至內容
[[
a10:slb:aflex:http:redirect-domain-uri
]]
脆笛酥的家
足跡:
顯示頁面
管理選單
最近更新
網站地圖
登入
搜尋
本頁是唯讀的,您可以看到原始碼,但不能更動它。您如果覺得它不應被鎖上,請詢問管理員。
====== Redirect to new domain ====== * Redirect to new production site, except some uri. ===== Requirement ===== * Service Type: HTTPS or HTTP ===== aFlex Code ===== <code tcl> when HTTP_REQUEST { if { [HTTP::host] eq "tw.test.website.com"} { if { [HTTP::uri] starts_with "/story" } { # do nothing } elseif { [HTTP::uri] starts_with "/maple" } { # do nothing } elseif { [HTTP::uri] starts_with "/uri" } { # do nothing } else { if { [TCP::local_port] eq 80 } { HTTP::redirect "http://tw.website.com[HTTP::uri]" } else { HTTP::redirect "https://tw.website.com[HTTP::uri]" } } } } </code>
顯示頁面
舊版
多媒體管理器
回到頁頂