Migrate Disqus Comments to New Domain and Shortname

Migrate Disqus Comments

This is my first post on my new domain name since I migrated everything over from okaymarketing.com to brianjackson.io. I have decided to focus on my personal branding instead of wasting time posting on two different blogs. Below is a tutorial on your options for migrating your disqus comments from one domain to another domain as well as a using a new shortname.

Disqus options 1, 2, and 3 require you to migrate to the same disqus shortname. That is why there is option 4.

Option 1 – Migration Tool – New domain + same shortname

Disqus has a domain migration tool for migrating from domain1.com to domain2.com but the catch is you have to use the same shortname. Also from feedback gathered around the web it doesn’t seem to catch 100% of the threads so you might notice things missing. Also with this process you can’t go back once it is started. Read more about the domain migration wizard.

Option 2 – URL Mapper – New domain + same shortname

Disqus has a URL mapper process where you can submit a CSV with your old URLs (domain1.com/oldurl) and the new URLs (domain2.com/newurl) you are wanting to migrate to. The catch is you have to use the same shortname. Also from feedback gathered around the web it doesn’t seem to catch 100% of the threads so you might notice things missing. Read more about the URL Mapper Process.

Option 3 – Redirect Crawler – New Domain + same shortname

Disqus has a redirect crawler where if you have already setup 301 redirects from domain1.com/oldurl to domain2.com/newurl then it will periodically crawl them and automatically migrate your threads over. The catch is you have to use the same shortname. Also from feedback gathered around the web it doesn’t seem to catch 100% of the threads so you might notice things missing. Read more about the Redirect Crawler.

Option 4 – Import Comments – New Domain + new shortname

Option 4 is that method I prefer when migrating your disqus comments. It seems to be the safest and is the only way you can migrate your comments to a new domain as well as a new shortname at the same time. I didn’t want to use the same shortname because it was named something related to my old business name. I don’t know why Disqus doesn’t promote this method more as it works great. Please note in this method you will lose the gravatar images until that person has re-commented on your blog. But for me that didn’t bother me, I just wanted a method where I could confirm that I got 100% of my comments migrated over.

Step 1

First on your new domain make sure you have setup disqus with a new shortname and account.

Step 2

Now on your old domain we are going to export your comments. So click into “Tools” and “Export.”

tools export

Step 3

Now click on “Post” and then “Download Export File.” This will download a XML file with all of your comments. (Note: if you have a lot of comments you might have to do this in batches. I had over 500 comments and it worked fine exporting them all at once)

export post comments

Step 4

Now under your new disqus account and new shortname click into the “Discussions” tab and click on “Import.”

discussions import

Step 5

Click on “Choose File” under WordPress Upload WXR and upload your XML file you generated in step 3.

upload wxr

And that’s it! It might take a little while as Disqus puts your upload into a queue. Usually takes about 20 minutes or so. Why does this work? From what I can tell is that Disqus gives each post a unique “dsq_thread_id” in the wp_postmeta table. When you re-upload your comments it matches up the thread id. I have used this method to migrate disqus comments a couple times and I have always gotten 100% of my comments to come over.

As always feel free to leave your comments below!

Get More Stuff Like This

Marketing, WordPress, Blogging Tips, SEO and Reviews, once a week.

Thank you for subscribing.

Something went wrong.

5 thoughts on “Migrate Disqus Comments to New Domain and Shortname”

  1. Pingback: How to Migrate from HTTP to HTTPS - Complete Tutorial - Learn SEO
  2. You sir, are a lifesaver.

    After a http to https migration, all the comments on our site (10,000+ of it) had disappeared. As if a flawless https migration wasn’t hard enough!

    The option 4 explained in your article did the trick, unlike the unhelpful methods (url mapping, blah blah) mentioned on the disqus site.

    Many thanks!

Leave a Comment