DEV Community

Tapas Adhikary
Tapas Adhikary

Posted on Edited on

How to add canonical url to a published post?

I find this url outdated as the 'Write a new post' steps are changed.

Can someone help on pointing out, how to republish an article on dev.to specifying a canonical?

Thanks!

Top comments (7)

Collapse
 
phantas0s profile image
Matthieu Cneude •

Set a header like this one:

---
canonical_url: https://thevaluable.dev/vim-php-ide/
---
Enter fullscreen mode Exit fullscreen mode
Collapse
 
chinedu profile image
chinedu •

Thank you 😊

Collapse
 
shtefcs profile image
Stefan Smiljkovic •

Wondering why this tags are not displayed by default, but I need to Google search this everytime.

Collapse
 
ashutoshvaidya profile image
Ashutosh Vaidya •

Thanks for this post, I was struggling to add canonical URL.

Collapse
 
atapas profile image
Tapas Adhikary •

Welcome.

Collapse
 
ajayv1 profile image
Ajay Kumar Verma •

thanks Tapas

Collapse
 
atapas profile image
Tapas Adhikary •

Welcome 😀