Redirecting Github Pages to new site
I have a personal blog repository. This blog is written by using Jekyll.
This weekend, I decided to change my home, from url ttuan.github.io to new site ttuan.xyz. The new blog is written by using Hugo. But how to redirect old site link to new?
Solution
Change the ttuan.github.io/index.html
content to rediect:
<!DOCTYPE html>
<meta charset="utf-8">
<title>Redirecting to https://ttuan.xyz/</title>
<meta http-equiv="refresh" content="0; URL=https://ttuan.xyz/">
<link rel="canonical" href="https://ttuan.xyz/">
The last commit.
Reference: https://gist.github.com/domenic/1f286d415559b56d725bee51a62c24a7