• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Change $head.canonical variable with Listeners

allewreK

Active member
#1
Hello,

I have two domains on my website.
- One is the main domain (domain.com) ;
- The second is a domain that I use for my iOS application (mobile.domain.com) ;

My problem is that I have duplicated content in google, pages from mobile.domain.com is indexed.

I would like to update, with a listener, the $head.canonical variables so I do not have duplicate content.

I don't find the variable in my listeners ? Do you have a solution ?

Regards
 

Mike

XenForo developer
Staff member
#2
It probably makes more sense to just edit the templates in question (which add the canonical tag).