Passer la navigation

[Résolu] URL canonical error

Ce fil est résolu. Voici une description du problème et la solution proposée.

Problem:

I'm receiving reports indicating that the hreflang annotations in my custom post type "corsi" contain URLs that are not canonical. The URLs include parameters such as https://example.it/corso/nomecorso?subject=test. I need to set the canonical URL to https://example.it/corso/nomecorso.

Solution:

Toolset doesn't provide direct customization for canonical URLs in the page head. Consider using an SEO plugin that allows setting canonical URLs.

You can get started here:

https://www.hallaminternet.com/avoiding-the-seo-pitfalls-of-url-parameters/

https://clicknathan.com/web-design/wordpress-canonical-urls-done-right/

This support ticket is created Il y a 2 years, 2 months. There's a good chance that you are reading advice that it now obsolete.

This is the technical support forum for Toolset - a suite of plugins for developing WordPress sites without writing PHP.

Everyone can read this forum, but only Toolset clients can post in it. Toolset support works 6 days per week, 19 hours per day.

Ce sujet contient 1 reply, a 2 voix.

Dernière mise à jour par Christopher Amirian Il y a 2 years, 2 months.

Assisté par: Christopher Amirian.

Auteur
Publications
#2686922

Hi,
I created a CPT "corsi." Performing a check I see reports with "URLs that do not use the canonical URL of the page in their hreflang annotation. The hreflang annotation must include only canonical versions of URLs." The format of my link is lien caché. In the URL so there are some parameters. How can I set which canonical URL is lien caché.

Ragards

Thank you

#2687111

Christopher Amirian
Supporter

Les langues: Anglais (English )

Hi there,

Toolset doesn't have any way to customise the canonical link in the page head, but you may be able to with an SEO plugin.

I stumbled across this article which you may find helpful (though it doesn't answer the question of how to set the canonical link to include URL parameters): lien caché

This one shows how to though: lien caché

Thanks.