Problems, need help? Have a tip or advice? Post it here.
3 posts Page 1 of 1
I have a unique situation that I am not sure how to accomplish with couch tags/variables. I duplicated a site for a client that is using the new domain name for advertising purposes. I need to add canonical meta tags on each page to link back to the original site so that search engines know that the new site is a duplicate and to only look at the original site. Ideally I am trying to do this like so:

https://originalsite.com/<cms:show everything_after_the_root_domain_here />
On the duplicate site, replacing the 'https://duplicatesite.com/' part of any link with 'https://originalsite.com/' should do it.
So, your approach seems to be fine to me.
I am not able to find a variable that will allow me to print the page name or path without the root domain in it. Example:

If I use show_k_page_link it will display the full path of the duplicate site. So I was thinking I could hardcode in the original site and use a variable to print the file path for each page.

https://orginalsite.com/<cms:show k_page_link />
3 posts Page 1 of 1