Wednesday, November 13, 2024

Cloudflare.com设置域名URL转发

1、登录Cloudflare.com,选择需要设置URL转发的域名,点击Page Rules

2、点击Create Page Rule

3、输入源域名如http://domain.com/*

4、点击Add a Setting,选择Forwarding URL,右侧选择301 – Permanent Redirect

5、然后输入新域名如https://newdomain.com/$1

6、点击Save and Deploy,使页面规则生效即可。

提示:源域名需要设置一个A记录,否则可能无法实现域名URL转发/跳转。

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.