CodeIgniter Forums
Canonical Links Issue - Printable Version

+- CodeIgniter Forums (
+-- Forum: Archived Discussions (
+--- Forum: Archived Development & Programming (
+--- Thread: Canonical Links Issue (/thread-56689.html)

Canonical Links Issue - El Forum - 01-11-2013

I have setup cdn for the website and now I am hacing canonical links issues. 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:
<?php echo base_url();?>

Other static pages like about, contact, privacy policy, etc.:
<?php echo base_url();?>info/<?php echo $footer_menu_row->page_seo; ?>.html

For dynamic pages (Similar to blog posts):
<?php echo base_url().'view/'.$row->wall_id.'/'.friendlyURL($row->wall_name).'.html';?>


Canonical Links Issue - El Forum - 01-11-2013

Hmmm, I cannot see any "canonical" related html at all...

As to the best of my knowledge canonical links are strictly one domain, not cross domain, directives. I could be wrong, but I think you'll have to look for another option.

Canonical Links Issue - El Forum - 01-11-2013


I just want to echo out actual url of the current page. Example: When someone visits then in the header it should have
<link rel="canonical" href="" />
so Google does not consider it as duplicate when google finds cdn version