🔗
Occasionally, you’ll need to move to a different domain, for example when re-doing a website. When talking to Ollie about this, he told me that some people leave their old websites online at
<year>.<domain>
and I love that idea3.You can look up old content and redirect links, so your URIs stay cool. And in ten years it’ll probably still be online.
I don’t know how one would go about doing this, but I do think it’s a swell idea.
@jarrod I did this when I changed mine recently and I’m gunna try and go back to do the other ones. https://2023.rknight.me
@robb @jarrod I meant to ask when I emailed the other day, how do you handle duplicate content with all this? I’d assume a combination of robots.txt and setting the canonical link in the header? Thinking about doing something similar.
@kev @jarrod I have done nothing because I didn’t think about that until just this second.
But yes, canonical link in the head plus robots disallow should do the trick.
@robb @jarrod phew, good work. I have my old projects just sitting here ready to do something like this...
@robb @kev Canonical link in the header? I think I need to level up my web experience more to know what you mean. 😅
@jarrod @kev A link like this in your `head` tag:
<link rel="canonical" href="https://rknight.me"/>
@jarrod @robb it basically tells the internet what the true source of the content is. So if you have a duplicate anywhere, like on dev.to / medium / or a previous iteration of your site, you can say "hey, internet, this is the *real* source of this content, go look there..."