Php Cloudflare将子域重定向到目录

Php Cloudflare将子域重定向到目录,php,nginx,cloudflare,Php,Nginx,Cloudflare,我正在尝试使用Cloudflare重定向: http://sub.example.com -> http://example.com/sub 但我宁愿这样: http://sub.example.com -> http://example.com/subdomain 这是可能的吗?使用Cloudflare页面规则是可能的。在网站页面中,单击您网站的设备,然后选择页面规则。然后你可以添加你想要的每一个图案。例如: 有关Cloudflare页面规则的更多信息,请查看官方网站:

我正在尝试使用Cloudflare重定向:

http://sub.example.com -> http://example.com/sub
但我宁愿这样:

http://sub.example.com -> http://example.com/subdomain

这是可能的吗?

使用Cloudflare页面规则是可能的。在网站页面中,单击您网站的设备,然后选择页面规则。然后你可以添加你想要的每一个图案。例如:

有关Cloudflare页面规则的更多信息,请查看官方网站: