cancel
Showing results for 
Search instead for 
Did you mean: 

Canonical urls between stores (For Mobile Site)

Canonical urls between stores (For Mobile Site)

Hi Guys.

 

Im looking for which magento file writes the canonical link OR a better solution to this problem if there is one?

 

I use a mutlistore set up for our main store and our mobile store. URL examples:

www.store.com/

www.store.com/m/

 

I am wanting to create a global fix so all /m/ urls have canonical links back to the corresponding page on the main store.

 

I can do it simply with a str_replace wherever magento writes the canonical link but i cant find where the .phtml file is that writes this?

 

Other option is to noindex the mobile store but from what I understand Mr Google prefers the canonical option.

 

Cheers