Loading


Advertisement:

Author Topic: how to use canonical to prevent duplicate content problem  (Read 231 times)

Syed

  • Jr. Member
  • **
  • Posts: 98
how to use canonical to prevent duplicate content problem
« on: July 07, 2016, 12:53:22 pm »
I have changed url scheme in my website now i am having duplicate content problem.
Anybody tell me how to solve it, the following code found in head.php not working.

Code: [Select]
<?php if( osc_get_canonical() != '' ) { ?>
<!-- canonical -->
<link rel="canonical" href="<?php echo osc_get_canonical(); ?>"/>
<!-- /canonical -->
<?php ?>

mrtsoftware

  • Jr. Member
  • **
  • Posts: 62
Re: how to use canonical to prevent duplicate content problem
« Reply #1 on: March 14, 2017, 08:53:04 pm »
Yes given CANONICAL code of osclass does not create canonical url link, I have also same problem for my all websites