cannonical
• The canonical tag is used when a website has multiple pages with the same or very similar content.
• Solves the Duplicate Content Problem
• Provides Clarity for Search Engines
• Combines Rank Signals
usage
In short, the canonical tag is a critical tool for your site's SEO health. It eliminates duplicate content, allows search engines to crawl your site more efficiently, and boosts your search rankings.
@{
var currentUrl = Context.Request.Scheme + "://" + Context.Request.Host + Context.Request.Path;
}
<!DOCTYPE html>
<html lang="en">
<head>
<link rel="canonical" href="@currentUrl" />
</head>