lynnmcdee Posted June 24, 2014 Share Posted June 24, 2014 My website is showing some duplicate content in webmaster tools. One of the category pages currently has 10 pages. Also, some products/pages have duplicated three times: eg correct URL, prod_798.html and .html?product_id=798. The correct URL is currently showing on the website and when I search for that product. But, webmaster tools is picking up other URL's for the same product. How can I stop this showing as duplicate content? Quote Link to comment Share on other sites More sharing options...
lynnmcdee Posted June 24, 2014 Author Share Posted June 24, 2014 Where is the file located, so that I can add code to the head section of the category pages? Quote Link to comment Share on other sites More sharing options...
bsmither Posted June 24, 2014 Share Posted June 24, 2014 I have no answer to your duplicated content circumstance. The <head> section of any skin is in the template file main.php. Quote Link to comment Share on other sites More sharing options...
lynnmcdee Posted June 25, 2014 Author Share Posted June 25, 2014 Thank you for your reply. I want to add a meta robot tag to the category pages (to stop the duplication), but not the homepage. Is this possible? Quote Link to comment Share on other sites More sharing options...
bsmither Posted June 25, 2014 Share Posted June 25, 2014 This may be a solution. Add template code to test for the 'section' being shown. In the template file main.php (I will be using Kurouto for CC5212), add this in the <head> section: {if $SECTION_NAME=='category'} <meta whatever> <meta whatever> {/if} Section names can be: account, category, checkout, document, download, gateway, giftcertificate, home, login, order, product, register, saleitems, and whatever any plugin mod wants to use. Quote Link to comment Share on other sites More sharing options...
lynnmcdee Posted June 25, 2014 Author Share Posted June 25, 2014 Thank you. I tried the following, {if $SECTION_NAME=='category'} <meta name="robots" content="noindex, follow" /> {/if} but it is still showing duplicate pages: Quote Link to comment Share on other sites More sharing options...
bsmither Posted June 25, 2014 Share Posted June 25, 2014 Looking at the template code, there is an existing <meta> that tells robots to follow. Plus, there may be a robots.txt file in the CubeCart top folder, but unless you change that, the only instructions is to disallow cache and images. Quote Link to comment Share on other sites More sharing options...
lynnmcdee Posted June 25, 2014 Author Share Posted June 25, 2014 Yes, there is the following in the main.php file <meta name="robots" content="index, follow" />. I only want to noindex the category pages, to stop the duplicate content. The other option that has been suggested is to change the canonical!!! What would you suggest? Quote Link to comment Share on other sites More sharing options...
bsmither Posted June 25, 2014 Share Posted June 25, 2014 Where the existing <meta> tag is, you could try:{if $SECTION_NAME=='category'} <meta name="robots" content="noindex, follow" /> {else} <meta name="robots" content="index, follow" /> {/if} Other than the above, I have nothing. I have no skills with SEO stuff. Quote Link to comment Share on other sites More sharing options...
lynnmcdee Posted June 25, 2014 Author Share Posted June 25, 2014 Thank you, but unfortunately it didn't work Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.