Canonical Settings For Blog Pages
Автор: Alvin L.
Просмотрено 840,
Подписчики 1,
Размещенный 0
I currently use the [CURPAGE] in the header of my webpage to specify the Canonical. However, this does not work correctly for the Blog pages. Is there a variable or something that can be added to the linkrel="canonical" that will capture the webpage data after the webpage, so it includes the ? and everything following?
Here's an example of what I am asking. The URL of a blog page will look something like this:
https://www.mywebsite.com/blog/index.php?my-blog-page-title
The [CURPAGE] variable will only capture everything upto the index.php but the canonical for a blog page needs to include everything after that as well. Anyone know an easy workaround for this?
Размещено
I just tested with the current Pro version 2023.3.7 and found that the Canonical tags are automatically added to the blog posts - so the user doesn't have to do anything.
Evo (tested with version 2023.2.8) also includes the automatic creation of canonical tags - nothing needs to be done here either.
----- Evo 2023.2.8 test page -----
<linkrel="canonical" href="http://finde-links.de/123blogkommentare/blog/?at-vero-eos-et-accusamus-et-iusto" target="_blank" rel="nofollow">http://finde-links.de/123blogkommentare/blog/?at-vero-eos-et-accusamus-et-iusto">http://finde-links.de/123blogkommentare/blog/?at-vero-eos-et-accusamus-et-iusto"/>
Unfortunately the forum software changed the code, so here is a screenshot from the source code.
----- Screenshot -----
Автор
I have been experimenting with this and Daniel is correct. If I do not specify a cononical in the header, WebsiteX5 will add one to the blog pages. But it does not add the canonical to the standard HTML pages. This is a bit aggrevating because it's not consistent. Google is killing me with this canonical. If I remove the canonical, Google complains there is none. So I need a canonical on all the HTML pages.
Is there any way to add the canonical to every page without touching hundreds of pages manually? Removing the canonical from the "Statistics and Code" under "Settings" does fix the issue of not having the proper canonical on blog pages, but I now have to touch every other page manually to add the canonical, and we are talking hundres of pages.
It's best to post this wish here as an idea, perhaps this automatic function will be included in one of the next updates, as it will make the work of many WebSiteX5 users easier.
-----
Автор
I will do that, thank you Daniel.