I have two sites:
One is xxx.ruhoh.com
and the other is blog.xxx.com
. Actually they're the same sites, the only different is the domain name. I embebed the code of disqus
into the page. However, their comment system can't be shared. For example, if I write a comment at xxx.ruhoh.com/post1
, this comment can't be seen at blog.xxx.com/post1
.
Does anyone have ideas about how to merge/share the comment system in two domains for disqus?
Log in to cPanel. In the “Domains” section, click the “Aliases” link or icon. In the “Create a New Alias” section, enter the alias domain name in the “Domain” field, then click the “Add Domain” button. When the domain alias has been added you will see a success message.
Domain aliases are domains that you own, but which do not contain any content. Instead, they point to the contents of another domain or subdomain on your account. This is useful, for example, to hold a domain that you will later sell, or to redirect traffic to another domain.
Essentially what you're trying to do is load a single thread on multiple unique URLs. This doesn't work out of the box because Disqus will identify each unique thread by a unique URL.
What you'll need to do is add a common disqus_identifier
and/or disqus_url
javascript variable to your Disqus code. Identifiers and other javascript variables are described in detail here and here.
From your example above, you can probably extract /post1
to use as the identifier between the two subdomains. We do recommend setting a disqus_url
, even if you use an identifier, because one URL is still used as the link-to URL for notifications, widgets, etc. So you'll have to choose one subdomain that you prefer we link to, and make sure it's set on both versions of the blog post.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With