Duplicate pages

Discuss Search Engine Optimization in relation to Joomla!. This forum will also have discussions on SEF/SEO Joomla! extensions.
User avatar
Joomla! Explorer
Joomla! Explorer
Posts: 283
Joined: Tue Jul 19, 2011 8:56 am
Location: Monaco

Duplicate pages

Postby Jeyjoo » Thu Apr 05, 2012 11:40 am

I have SEF and system - aceSEF on my site. I have a duplicate page problem.

I would like to resolve this with a canonical link extension.

Can anyone recommend the best extension, as there seem to be many out there (without reviews, which I usually rely heavily on)


User avatar
Joomla! Apprentice
Joomla! Apprentice
Posts: 6
Joined: Fri Jan 11, 2013 6:51 am
Location: North Carolina

Re: Duplicate pages

Postby simo9090 » Fri Jan 11, 2013 8:47 pm

Dealing with Duplicate Pages

NOTE: Let me start out by saying I don't have a ton of experience with coding, so this may not be the best (or even right) way to do this, but after a day of working on it, this is what I believe works.

A. When I create an article in Joomla, for whatever reason, Joomla creates duplicate pages. Sometimes it creates multiple paths using the “Categories” I created in Joomla. When Google indexes my website and finds these different paths to the same article, it considers them as duplicate pages. For example, Google assumes I have duplicate pages when it finds the same article in each of these places:

http://www.m2820 . com/conferences/teaching-sunday-school
http://www.m2820 . com/teaching-sunday-school/index.php?option=com_content&view=article&id=1&Itemid=101

B. I can tell Google which page should be considered to be the master or original page that I want it to index and which pages it should ignore. I do this by using the rel=“canonical” link. This code should be placed on the non-canonical or on the duplicate pages, but I’m assuming (hoping?) it can also be placed on the original pages since that is the only ones I know how to gain access to. All the other pages are created by Joomla itself.

– For an explanation of using <link rel="canonical " href="your webaddress " /> see:
http://support.google.com/webmasters/bi ... wer=139394
– Example:
<link rel="canonical" href="http://www.m2820.com/teaching-sunday-school"/>

C. The <link ...> tag needs to be inserted into the <head> tag for each page and you can do this using Joomla’s JdocumentHTML/addCustomTag. See:

D. The JDocumentHTML is PHP code, so you need a way to insert it into the header <head>. NoNumber’s free version of Sourcerer will do this ( http://www.nonumber.nl/extensions/sourcerer ).

Install Sourcerer, then add the code below in your article. Note, you add it as regular text, not has HTML text. In other words, type it in as you would any other text. Don’t toggle the editor so you can see the HTML code that makes up the article.

• Instructions:
http://www.nonumber.nl/extensions/sourc ... -html-page

• Example code to add to article:
– You wrap the code you want in the header between Sourcerer’s {source} tags.
{source}<?php $doc->addCustomTag( '<link rel="canonical" href="http://www.m2820.com/teaching-sunday-school";/>' );?>{/source}

• This is the code that was added to the header:
<link rel="canonical" href="http://www.m2820.org/teaching-sunday-school"/>

Hope this helps anyone else trying to figure this out.

Return to “Search Engine Optimization (Joomla! SEO) in Joomla! 1.5”

Who is online

Users browsing this forum: No registered users and 13 guests