mod_rewrite怎么替换path前缀 #1116
Unanswered
lijl-vb
asked this question in
Q&A (问题和回答)
Replies: 1 comment 1 reply
-
你需要用两个Action, 代码如下 {
"Version": "init version",
"Config": {
"youerning_product": [
{
"Cond": "req_path_prefix_in(\"/api\", false)",
"Actions": [
{
"Cmd": "PATH_PREFIX_TRIM",
"Params": [
"/api"
]
},
{
"Cmd": "PATH_PREFIX_ADD",
"Params": [
"/boot/"
]
}
],
"Last": true
}
]
}
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
mod_rewrite怎么替换path前缀?
比如想把“http://127.0.0.1/api/” 替换为 “http://127.0.0.1/boot/ ”应该怎么做?
Beta Was this translation helpful? Give feedback.
All reactions