Migrating from .co.uk to .com domain using ; Blogger, Cloudflare & Google Sites
blog.dwthacker.co.uk/* A couple of years ago, I took a .co.uk domain simply because I wanted to try out my own self hosted WordPress site. The .co.uk domain came free, and I did not have many second thoughts. After this, I had enough of the constant updates to WordPress. So I thought I would take a look at an easier solution that was also free.
For the base site, I made it on sites.google.com, and for the blog, I transferred and put it onto Blogger.com.
Unfortunately, Blogger only supports one base domain so I could not have dwthacker.co.uk and .com pointing to the same blog.
In this guide, I will quickly show you how to keep your old .co.uk links working with the new .com domain.
- Purchase a new domain for this one I purchased it via google domains.
- Change your blogger domain to the new one so from me it was from dwthacker.co.uk to dwthacker.com but you could change the domain to anything.
- Go into Cloudflare and create the following rules
- The first rule was for my subdomain so: "blog.dwthacker.co.uk/*" The Asterix is important as it allows Cloudflare to match anything after the forward-slash. Then select "Forwarding URL" "301 - Permanent Redirect" For the new domain: "https://blog.dwthacker.com/$1" The "$1" is important as it tells Cloudflare to keep the rest of the URL structure for your existing sites for me this was a blogger.
- Repete this for as many domains that you need if you have more than 3 then you will need to pay for additional rules or set up an additional Cloudflare account if it is a separate domain. Cloudflare is just great so you should just pay them!
- Set up your new domain, for me I did it via google domains so was painless. I was able to automatically add it to blogger and sites.google.com without any overhead of validating the domain as it was purchased on the same google account.
- SetupURL forwarding on, if using google sites for your main site; then you may already know that google sites does not allow for naked domains for example "https://dwthacker.com" What google sites requires is "https://www.dwthacker.com" so if you enter just "https://dwthacker.com" you will end up with a 500 error. So you need to put a redirect in that looks like the image below:
I hope this helps you out happy migrating!
It is a proficient article that you have shared here. Cloudflare Competitors and Alternatives I got some different kind of information from your article which I will be sharing with my friends who need this info. Thankful to you for sharing an article like this.
ReplyDelete