Seems like I have to create a new website and copy all the settings over there, but it seems a bit suboptimal (like, will Cloudflare have to cache things twice?) Eventually I will phase out old domain and migrate to the new one, but there are a lot of software that uses old domain right now, and I don’t think all of it could handle redirects, so I’d really need to keep both websites running for some time.
What feature, service or problem is this related to?
(There are some other threads regarding this question, but seeing how they are older than a year, I was wondering if there is a better way now, since don’t really want to create extra caching overload over nothing. Although if I were to assume most expense is coming from serving data rather than storing it, it shouldn’t be that big of an issue, and it would explain why there might be no direct way of doing so.)
You can just point both domains at the same server IP address. Make sure to configure your server to answer for both domains and point at the same source directory if they are to serve the same content. (Make sure the domain name isn’t hard coded in the site code so all links are relative to the domain name).
Don’t worry about Cloudflare caching two copies of everything.