通过Cloudflare,将域名重定向至另一个|Domain name 301

准备|Preparation

要使用Cloudflare重定向域名,请首先更改DNS名称服务器。举例:某云,找到“我的域名”——“基本信息”(DNS服务器);将名称服务器:****、****,分别修改为dana.ns.cloudflare.com、piotr.ns.cloudflare.com。

  • To use Cloudflare to redirect a domain name, first change the DNS name servers. For example: ** cloud, find “My Domain” – “Basic Information” (DNS Server); change the name servers: ****, ***, to dana.ns.cloudflare.com, piotr.ns.cloudflare.com respectively.

设置|Settings

Cloudflare DNS设置,添加A记录(@和www)。在IPv4 地址栏分别输入“8.8.8.8”,代理状态保持“已代理”。找到“规则(rules)”,“页面规则”——“创建页面规则”:通过使用 “*”和“$1”字符,可以创建与许多(而不只是一个)URL 相匹配的动态模式。

  • Cloudflare DNS settings, add A record (@ and www). In the IPv4 address bar, enter “8.8.8.8” respectively, and keep the proxy status as “proxied”. Find “Rules (rules)”, “Page Rules” – “Create Page Rule”: By using the “*” and “$1” characters, can create dynamic patterns that match many (not just one) URLs.

示例:tiangong.space/*——选取设置“转发URL”——选择状态代码“301 – 永久重定向”——输入目标URL”https://o10er.com/$1″。同理,创建www.tiangong.space/*的页面规则。

  • Example: tiangong.space/* – select the setting “Forward URL” – select the status code “301 – Permanent Redirect” – enter the target URL “https://o10er.com/$1”. Similarly, create a page rule for www.tiangong.space/*