In this article
To cross-post to DEV with a canonical URL, publish the post on your own site first, then create the DEV copy with its canonical_url field set to the original address. DEV then adds a rel="canonical" tag pointing back to your site, which tells search engines your page is the original. Do it in that order, with the exact live URL, and you keep the search credit while still reaching DEV's readers.
The rest of this guide covers the three ways to set it up, the mistakes that quietly send the credit to the wrong page, and how to check it worked.
Why the canonical URL matters on DEV
DEV is a large, well-crawled domain. If the same article appears there and on your blog with no signal about which came first, a search engine has to choose one to show. It may well pick the DEV copy, because the domain is strong and the page was crawled sooner.
A canonical tag is how you state your preference. Google treats rel="canonical" as a strong hint rather than a strict rule, and it supports canonicals across different domains. Its guide to consolidating duplicate URLs explains how it weighs the signal. In practice, a correct cross-domain canonical plus identical content is usually respected.
What you get from doing this properly:
- Your own page is the one that ranks for the post's search terms.
- DEV readers still find and read the full article.
- Signals from the DEV copy are usually consolidated towards your original.
What you lose without it: the DEV copy can outrank your page, and your blog looks like the duplicate.
Three ways to cross-post to DEV with a canonical URL
1. By hand in the DEV editor
In DEV's editor, open the post settings and fill in the canonical URL field before publishing. If you write in Markdown with front matter, you can add it there instead:
---
title: How we cut our build time in half
published: true
tags: nextjs, performance
canonical_url: https://example.com/blog/cut-build-time
---
This is fine for one or two posts a month. It becomes a chore when you are copying images, fixing code blocks and remembering the field every time.
2. Through DEV's API
DEV (built on Forem) has a REST API. You create an API key in your DEV settings under Extensions, then post the article with canonical_url in the body:
curl -X POST https://dev.to/api/articles \
-H "api-key: $DEV_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"article": {
"title": "How we cut our build time in half",
"body_markdown": "Your full post in Markdown",
"published": true,
"tags": ["nextjs", "performance"],
"canonical_url": "https://example.com/blog/cut-build-time"
}
}'
DEV allows up to four tags per post, written in lowercase with no spaces, so map your blog's categories to DEV tags before you script anything. The Forem API documentation lists the other fields, such as series and main_image. Scripting this works well for developers, but someone has to maintain the script and keep the key safe.
3. From a publishing tool
If you already publish to several sites from one editor, the DEV copy can be one more destination. In Quillfleet, a DEV cross-post is created from the same post with the canonical URL pointing back to the site you publish it on. The DEV connection guide walks through adding your API key. This suits teams who publish regularly and don't want to copy posts across by hand.
| Method | Good for | Watch out for |
|---|---|---|
| DEV editor | Occasional posts | Forgetting the field, image re-uploads |
| DEV API | Developers with a build pipeline | Script upkeep, key storage |
| Publishing tool | Regular posts across several sites | One more account to connect |
The mistakes that send credit to the wrong page
Most canonical problems come from small details. Check these before you publish.
- Cross-posting before the original is live. If the DEV copy goes out first, it is crawled first. Publish on your site, confirm the page loads publicly, then cross-post.
- A canonical that redirects. If your canonical is
http://example.com/blog/postand your site redirects tohttps://www.example.com/blog/post/, you have sent a weaker signal. Use the final URL exactly, includinghttps,wwwand any trailing slash. - Changing the slug later. If you rename the original after cross-posting, the DEV canonical now points at a redirect or a 404. Update the DEV post too.
- Rewriting the DEV version heavily. A canonical works best when the pages match. A short teaser that links back is a different approach, and it doesn't need a canonical at all.
- Your own page canonicalising elsewhere. If your blog's template sets its own canonical to a tag page or a staging domain, the chain breaks. View the source of your original and check its
rel="canonical"points to itself. - Staging URLs. A canonical pointing at
staging.example.comis a common slip when posts are drafted on a preview site.
How long to wait before cross-posting
There is no fixed rule. A practical approach is to wait until your original has been crawled. In Google Search Console, run URL Inspection on the new page and request indexing if needed. Once it shows as indexed, or after a day or two for a site that is crawled often, publish the DEV copy.
For a new site that is crawled rarely, waiting longer helps more. The canonical still protects you, but having your page indexed first removes any doubt.
A simple rhythm for a team blog: publish on your site on Tuesday morning, inspect the URL the same day, and schedule the DEV copy for Thursday. DEV readers are spread across time zones, so the exact hour matters less than keeping the gap consistent. Write the rule down so whoever publishes next week follows the same order.
How to check the canonical worked
After the DEV post is live:
- Open it and view the page source. Search for
rel="canonical". It should show your original URL, not the DEV address. - Check that the URL loads with a 200 status and no redirect. A quick
curl -I https://example.com/blog/cut-build-timeshows the status line. - Over the following weeks, search for a distinctive sentence from the post in quotes. Your own page should appear above the DEV copy.
- In Search Console, inspect your original URL. Under the page indexing details, the Google-selected canonical should be your page.
If Google picks the DEV page anyway, look for a mismatch first: a different title, a missing section, or a canonical with the wrong host.
When cross-posting to DEV isn't worth it
Cross-posting suits developer content: tutorials, write-ups of real problems, release notes for open-source tools. It suits marketing pages and product announcements much less, because DEV readers tend to ignore them and moderators may remove overt promotion.
It also isn't worth it if you can't keep the two copies in step. If you often edit posts after publishing, an outdated DEV copy is a poor look. A short summary on DEV that links to the full post is a fair alternative, and it carries no duplicate content risk at all.
If you run several blogs, the same canonical thinking applies between your own domains. Our guide to duplicate content across multiple domains covers that case, and publishing one post to multiple websites covers the wider workflow.
Frequently asked questions
Does a canonical on DEV pass link value to my site?
A canonical asks search engines to treat your page as the main version, so signals from the duplicate are usually consolidated towards it. It is a hint, not a guarantee, and Google decides how to apply it.
Can I add a canonical URL to a DEV post that is already published?
Yes. Edit the post, add the canonical URL in the settings or front matter, and save. Search engines pick up the change the next time they crawl the DEV page.
Will cross-posting to DEV hurt my site's rankings?
Not if the canonical is correct and points to the live original. Without one, the DEV copy can outrank your own page for the same terms.
Should the DEV version be identical to the original?
Close to identical works best for a canonical. Small changes, such as a different intro line for DEV readers, are fine.
Can I cross-post to DEV from an RSS feed?
DEV has an RSS import option in its settings that can create drafts from your feed and mark your site as the canonical source. Check the drafts before publishing, because code blocks and images do not always import cleanly.
Want to see the workflow before you connect anything? Try the demo site, or follow the DEV connection guide to set up your first cross-post.
- cross-post to DEV with a canonical URL
- DEV
- canonical URL
- duplicate content
- cross-posting

