Canonical SEF urls

Discuss Search Engine Optimization in relation to Joomla! 3.x. This forum will also have discussions on SEF/SEO Joomla! 3.x extensions.

Moderator: General Support Moderators

Forum rules
Forum Rules
Absolute Beginner's Guide to Joomla! <-- please read before posting, this means YOU.
Forum Post Assistant - If you are serious about wanting help, you will use this tool to help you post.
Windows Defender SmartScreen Issues <-- please read this if using Windows 10.
Joomla! Fledgling
Joomla! Fledgling
Posts: 4
Joined: Thu Jun 17, 2010 10:13 am

Canonical SEF urls

Post by nielsjuh86 » Fri Sep 20, 2013 9:22 pm


I'm having some problems to set up a canonical link between 2 websites. I have one website, and the second is the leading website, so needs to have a canonical tag that refers to the articles on The structure of both sites is exactly the same. I don't know how to add a canonical tag that dynamically loads the link to the other website.

I tried this:
<link rel=”canonical” href=”<?php echo $link = JRoute::_( 'index.php?lang='.$languages[ $code ]->sef.'&Itemid='.$item->id ); ?><?php echo $active->alias ?>” />
But in this case the category isn't included, so the link isn't correct. How to solve this? I hope someone can help me.

Regards, Niels

Joomla! Apprentice
Joomla! Apprentice
Posts: 45
Joined: Wed Jul 31, 2013 6:43 am

Re: Canonical SEF urls

Post by filim » Sat Sep 21, 2013 11:55 am

User avatar
Joomla! Apprentice
Joomla! Apprentice
Posts: 31
Joined: Mon Sep 23, 2013 4:13 pm
Location: Bournemouth

Re: Canonical SEF urls

Post by PaulMore » Mon Sep 23, 2013 6:00 pm

I use AceSEF but there is SH404Sef and many others that will aid with this task, unless you want to do it manually, then I'm, not sure. ;D

Joomla! Intern
Joomla! Intern
Posts: 55
Joined: Sat Jul 06, 2013 6:25 am

Re: Canonical SEF urls

Post by dermi » Tue Sep 24, 2013 12:17 pm

I think this plugin can help you, please this plagin
Canonical Url : ... ion-/24728
Joomla! is an award-winning open source CMS for building powerful websites. .



Return to “Search Engine Optimization (Joomla! SEO) in Joomla! 3.x”