banner
LAPLACE

王友元's blog

停下来前一定要想好下次开始时需要做的事情
telegram
x
email

Implementing Multi-Domain Binding for xlog

I want to bind "@" and "www" to my xlog site, but xlog only supports binding with a single domain name. After asking DIYgod on Twitter, I learned that a 301 redirect is a better choice.

So I used Cloudflare's page rules feature to implement a 301 redirect and achieve multi-domain binding for xlog.

Note: DNS provider support for redirect functionality is required.#

(Side note) I highly recommend using Cloudflare's DNS service because using xlog is to maintain the anonymity of Laplace. Therefore, I not only transferred the NS to Cloudflare but also transferred the domain name to Google. I believe that the anonymity is strong enough now, hehe.

Operation example:

image

At the same time, we need to add the domain name that requires a 301 redirect to the DNS resolution and connect it to Cloudflare.#

uTools_1684924089340

Here, you can parse any IP address. I parsed it to 8.8.8.8.

This way, we have achieved: accessing www.laplace.cc will redirect to laplace.cc.

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.