[eluser]Unknown[/eluser]
I have setup cdn for the website and now I am hacing canonical links issues. cdn.domain.com is being indexed which contains content of the main domain so the Google is considering it as duplicate content. I would like to place a canonical link element on the header.php so it shows up on every page but I am having difficulties as I am very new with codeignitor. To make it more clear I have mentione the codes below for getting links.
Home Page:
Code:
<?php echo base_url();?>
Other static pages like about, contact, privacy policy, etc.:
Code:
<?php echo base_url();?>info/<?php echo $footer_menu_row->page_seo; ?>.html
For dynamic pages (Similar to blog posts):
Code:
<?php echo base_url().'view/'.$row->wall_id.'/'.friendlyURL($row->wall_name).'.html';?>
Thanks