要将 /blog/<PATH> 下的所有内容重写为 /marketing/<PATH>,请创建一条新的 URL 重写规则,并使用通配符模式参数定义动态 URL 路径重写:
When incoming requests match(当传入请求匹配时)
- Wildcard pattern(通配符模式)
- Request URL(请求 URL):
https://<YOUR_HOSTNAME>/blog/*
- Request URL(请求 URL):
Then rewrite the path and/or query(然后重写路径和/或查询)
- Target path(目标路径): [
/]blog/* - Rewrite to(重写为): [
/]marketing/${1}
请务必将 <YOUR_HOSTNAME> 替换为你的实际主机名,并根据你的设置调整示例路径。