This guide explains how to redirect your old domain (adampang.com) to your new canonical domain (adamtomas.fun).
If both domains are on the same registrar/DNS provider:
Add these records:
URL Redirect Record:
URL Redirect Record (www):
*adampang.com/*https://adamtomas.fun/$2If adampang.com is hosted on GitHub Pages:
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta http-equiv="refresh" content="0; url=https://adamtomas.fun">
<link rel="canonical" href="https://adamtomas.fun">
<title>Redirecting...</title>
<script>window.location.href = "https://adamtomas.fun";</script>
</head>
<body>
<p>Redirecting to <a href="https://adamtomas.fun">adamtomas.fun</a>...</p>
</body>
</html>
If adampang.com is on Netlify:
_redirects file in your adampang.com site root:# Redirect all pages to adamtomas.fun
/* https://adamtomas.fun/:splat 301!
netlify.toml:[[redirects]]
from = "/*"
to = "https://adamtomas.fun/:splat"
status = 301
force = true
If using Vercel, add to your vercel.json:
{
"redirects": [
{
"source": "/:path*",
"destination": "https://adamtomas.fun/:path*",
"permanent": true
}
]
}
After setting up redirects, verify they work:
curl -I http://adampang.com
Should show: HTTP/1.1 301 Moved Permanently
curl -I http://www.adampang.com
After redirect is live, update your links across:
The 301 permanent redirect will:
Consider submitting a change of address in Google Search Console:
âDomain doesnât redirectâ
âGetting 404 errorsâ
âRedirect loopâ
If you run into issues:
dig adampang.com to see current DNS setupNeed to run diagnostics? Use these commands:
# See where domain points
dig adampang.com
# Check HTTP response
curl -I http://adampang.com
# Full trace
curl -L -v http://adampang.com