Redirect an old blog to a new URL
My old blog was at blog.wafrat.com, and I wanted to host the new one at www.wafrat.com, while also preserving the old links.
My first idea was to use a CNAME redcord:
- Host name: "blog"
- Type: CNAME
- Data: "www.wafrat.com."
And it worked, except for the SSL certificate.
![](https://www.wafrat.com/content/images/2022/07/image-3.png)
So instead, I set up web forwarding on Google Domains (my registrar).
![](https://www.wafrat.com/content/images/2022/07/Screen-Shot-2022-07-05-at-12.43.27-PM.png)
I also had to go into advanced settings to forward paths too:
![](https://www.wafrat.com/content/images/2022/07/image-4.png)
It was pretty quick for the forward pathing to work: http://blog.wafrat.com/about indeed redirected to https://www.wafrat.com/about/, but http://blog.wafrat.com/ redirected to https://blog.wafrat.com/, and then simpy failed.
It took another 2 hours for http://blog.wafrat.com and https://blog.wafrat.com to redirect to https://www.wafrat.com.