Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2008-09-03 13:27:39

beechy
Member
Registered: 2006-03-02
Posts: 92

Google webmaster tools showing duplicate content not sure how to remov

I have just checked my google webmaster tools account for a website I run that uses textpattern, in the “Diagnostics” section under “Content analysis” it showing duplicate title tags and metatag for some of the articles I have posted on my site -

It would appear that google has indexed these articles twice.

i.e

http://www.mysitename/section/id-number/article-title
http://www.mysitename‎/section/id/index.php‎

- both these urls point to the same article

Is there a way to turn off this behaviour in textpattern or can I simply restrict the duplicate page http://www.mysitename‎/section/id/index.php‎ with a robots.txt file if so how would I do this (what would I write in the robots file without totally restricting both urls.) – so that i dont have to update the robots file everytime I post an article

I have my urls setup in textpattern as – /section/id/title and dont really want to change this if at all possible

Last edited by beechy (2008-09-03 13:33:59)

Offline

#2 2008-09-03 14:24:20

Gocom
Developer Emeritus
From: Helsinki, Finland
Registered: 2006-07-14
Posts: 4,533
Website

Re: Google webmaster tools showing duplicate content not sure how to remov

You can do it by redirecting or by restricting the URL by robots.txt.

In example:

User-agent: *
Disallow: /section/id/index.php‎

More info at robotstxt.org

Also be aware that you can view the content both by messy and clean URLs, so that can also cause dublicate content. rah_metas can redirect messy URLs to clean ones.

Offline

Board footer

Powered by FluxBB