DEV Community

Discussion on: What's the proper way to move website to a new address?

Collapse
 
roelofjanelsinga profile image
Roelof Jan Elsinga

If there is a way that you can keep the GitHub Pages for now, then you can set the canonical url of the page to the new website. Google won't punish you (as much) for it. I don't know if this would help in your case, but it might safe your SEO.

Collapse
 
patarapolw profile image
Pacharapol Withayasakpunt • Edited

Not sure if it helps, but my _config.yml is now.

gems:
  - jekyll-redirect-from
url: https://polvcode.dev

I think that if I don't use Jekyll, I cannot get 301...

Not sure if I can use rel=canonical in Jekyll Markdown...

Collapse
 
roelofjanelsinga profile image
Roelof Jan Elsinga

You should be able to, if you can edit any of the elements within

then you can add it. I'm using Jekyll as well and I'm able to do it. What's the link to your repo? I can have a look tomorrow and create a pull request if it's possible.
Thread Thread
 
patarapolw profile image
Pacharapol Withayasakpunt
Collapse
 
supunkavinda profile image
Supun Kavinda

I'm not sure if it helps. Normally, Google shows the higher domain rank site even the canonicals are set. (Try publishing a post on your blog and DEV on the same day. DEV post will appear even you add canonical).

The recommended way is using the domain migrate tool in the Google search console. However, you cannot do that because it's on Guthub.io