mirror of
https://github.com/aaPanel/aaPanel.git
synced 2026-09-23 09:54:53 +02:00
9 lines
266 B
Plaintext
9 lines
266 B
Plaintext
#<VAR> 被匹配的变量($uri|$request_uri|$host)
|
|
#<RULE> 匹配规则(bt.cn|^/test$)
|
|
#<CODE> 重定向代码(301|302)
|
|
#<TO> 目标地址(https://www.bt.cn|/test)
|
|
#<ARGS> 要传递的参数($request_uri|/?test=1)
|
|
if (<VAR> ~ '<RULE>')
|
|
{
|
|
return <CODE> <TO><ARGS>;
|
|
} |