要提供两种语言的欢迎页面,请创建两条静态重写路径组件的 URL 重写规则:
URL 重写规则 #1
表达式编辑器 中的文本:
http.request.uri.path == "/welcome.html" && ip.src.country == "GB"Path(路径) > Rewrite to(重写至) > Static(静态) 后面的文本:
/welcome-gb.htmlURL 重写规则 #2
表达式编辑器 中的文本:
http.request.uri.path == "/welcome.html" && ip.src.country == "PT"Path(路径) > Rewrite to(重写至) > Static(静态) 后面的文本:
/welcome-pt.html