-->

How to create a Canonical URL tag for custom 301 redirect in blogger

Though a '301 redirect' redirects both bots and humans, the Canonical URL tag is only for web search tools, which implies you can even now track visitors to both of the remarkable URL variants. For SEO’s, canonicalization is utilized when the same page can be stacked from diverse URLs. Stacking the same page from distinctive URLs is an issue because duplicate content issues are created. This can frequently happen basically due to the default settings for web servers.

Canonical URL tag for 301 redirect

Along these lines, for www/non-www renditions of sites, this implies that the search engines need to know which one is authoritative, that is, they have to be told that those pages are the same and that the website owner had no intention to play around with Google’s rules.

This is done by adding a rel=”canonical” tag to the web page header.
<b:if cond="data:blog.isMobile">
<b:else>
<b:if cond="data:blog.url">
<link expr:href="data:blog.url" rel="canonical"></link>

</b:if>
</b:else>
</b:if>

No comments