March 15, 2020 05:01 pm GMT
Original Link: https://dev.to/patarapolw/what-s-the-proper-way-to-move-website-to-a-new-address-8i9
What's the proper way to move website to a new address?
Say, you have initially deploy the website on GitHub Pages, but you want to move to Netlify or Heroku.
Perhaps, totally destroy the old website, and create 404.html
for GitHub Pages (or redirect rules with 301 for other websites), filled with one-liner...
<meta http-equiv="refresh" content="0; URL='http://new-website.com'" />
See https://css-tricks.com/redirect-web-page/
Of course, a more sophisticated way would be to use JavaScript with location.replace
.
This is my said website, BTW -- https://patarapolw.github.io/blog
Original Link: https://dev.to/patarapolw/what-s-the-proper-way-to-move-website-to-a-new-address-8i9
Share this article:
Tweet
View Full Article
Dev To
An online community for sharing and discovering great ideas, having debates, and making friendsMore About this Source Visit Dev To