Cloudflare 301 域名跳转

老域名mlife.work因为不想续费了,还有半年到期,不想续费了,要提早做好迁移,保持自己在搜索引擎的搜索优先级,需要做好301跳转,让他们知道自己换地方了。

因为cloudflare有免费的CDN加速,所以很早就把域名解析过去了,但是看了看官方好像没有提供DNS 301跳转的选项,但是有类似的解决方案,参考这个链接:

https://support.cloudflare.com/hc/en-us/articles/200172286-How-do-I-perform-URL-forwarding-or-redirects-with-Cloudflare-

范例:

Forwarding examples:

Example forwarding to Google+:

Imagine you have a Google+ profile and you want to make it easy for anyone coming to get to simply by going to a URL like:

    *www.example.com/+

    *example.com/+

This pattern will match:

    http://example.com/+
    http://www.example.com/+
    https://www.example.com/+
    https://blog.example.com/+
    https://www.blog.example.com/+
    Etc...

It will not match:

    http://www.example.com/blog/+  [extra directory before the +]
    http://www.example.com+  [no trailing slash]

因为自己是从mlife.work跳转到blog.myds.cloud,所以就需要在Page Rules选项里面添加一条跳转记录,如下图:

这样子就搞定了。

发表评论

您的电子邮箱地址不会被公开。 必填项已用*标注