wrong syntax of my canonical URL with Custom Canonical Plug-in

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.
Post Reply
raziel1973
Joomla! Apprentice
Joomla! Apprentice
Posts: 20
Joined: Mon Sep 06, 2010 5:41 pm

wrong syntax of my canonical URL with Custom Canonical Plug-in

Post by raziel1973 » Sun Jan 31, 2021 12:32 am

Hi and thank you for your help.
I using Custom Canonical plug-in.
The syntax that this plug-in use is:
<link href="my_website.com" rel="canonical" />
and not
<link rel="canonical" href="my_website.com" />

witch one is correct?
To fix sef-url I change an URL of my website and also did a redirect 301 from old URL to new one.

It's one week and Google doesn't change the canonical URL. The says that my page is a duplicate.
The problem is the wrong sintax of tag?
thank you.
Tony

Alex W
Joomla! Apprentice
Joomla! Apprentice
Posts: 28
Joined: Wed Jan 13, 2016 4:05 am

Re: wrong syntax of my canonical URL with Custom Canonical Plug-in

Post by Alex W » Thu Apr 22, 2021 7:38 pm

I am using the Custom Canonical plug-in on my site.

The syntax:
<link href="my_website.com" rel="canonical" />

works fine, but in my experience it takes more than a week for google to notice things like this. It probably took 3-4 weeks (maybe longer) after I installed the plugin for most of my "duplicate without user selected canonical" errors to go away.

Kefe
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Sun Mar 17, 2013 5:52 am

Re: wrong syntax of my canonical URL with Custom Canonical Plug-in

Post by Kefe » Mon Aug 16, 2021 7:57 am

I use this Custom Canonical plugin as well for creating the canonical links. It works well, except for the tags: If I switch on the canonical creation for tags and then I link any of the tags, will drop a 404 error.
But not for all tags.

For the usual tags ".../component/tags/tag/..." works well.
But if I create a new Compact list of tagged items Menu Item, then it drops a 404 - page not found error.

The site I am trying to fix the canonical: https://www.szerver.hu/
An example Compact list of tagged items Menu Item: https://www.szerver.hu/munkaallomasok/
Has anybody met this issue before?

shumisha
Joomla! Guru
Joomla! Guru
Posts: 520
Joined: Sat Aug 20, 2005 3:15 pm
Contact:

Re: wrong syntax of my canonical URL with Custom Canonical Plug-in

Post by shumisha » Mon Oct 18, 2021 8:32 am

Hi

1 - As Alex W said, the syntax is fine, the order of attributes does not matter in HTML

2 - A canonical is just a hint. That you add a canonical will not necessarily make Google change their decision about which page is canonical. It does take a bit of time, but keep in mind they may just ignore your canonical if they have other signal that tell them the opposite.

Typically, if you have internal or external links to the "old" page, then it might still be considered the canonical page, even if you added a canonical link tag.

Adding a 301 redirect is a much stronger signal and it should have the desired effect, after a while.

Best regards
4SEO, all-in-one SEO extension for Joomla 3 & 4 - https://weeblr.com
I don't reply to PM anymore. Thanks for using 4SEO and wbAMP

User avatar
Hindro
Joomla! Intern
Joomla! Intern
Posts: 59
Joined: Sun Oct 07, 2012 2:13 pm
Location: Indonesia
Contact:

Re: wrong syntax of my canonical URL with Custom Canonical Plug-in

Post by Hindro » Mon Oct 18, 2021 12:44 pm

Custom Canonical works well in Joomla 3, but not compatible with Joomla 4. I wait for update.
topikit.com: Tempat belajar sosial media, seo dan adsense
termasmedia.com: Tempat belajar komputer


Post Reply

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