<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[SEO Academy]]></title><description><![CDATA[SEO Academy]]></description><link>https://seoakademiya.hashnode.dev</link><generator>RSS for Node</generator><lastBuildDate>Tue, 01 Dec 2026 00:53:14 GMT</lastBuildDate><atom:link href="https://seoakademiya.hashnode.dev/rss.xml" rel="self" type="application/rss+xml"/><language><![CDATA[en]]></language><ttl>60</ttl><item><title><![CDATA[A Canonical URL Checklist for Your Next Deployment]]></title><description><![CDATA[Check redirects, UTM variants, and canonical tags before a release. Follow a real curl example and a checklist for routing and template changes.]]></description><link>https://seoakademiya.hashnode.dev/a-canonical-url-checklist-for-your-next-deployment</link><guid isPermaLink="true">https://seoakademiya.hashnode.dev/a-canonical-url-checklist-for-your-next-deployment</guid><category><![CDATA[SEO for Developers]]></category><dc:creator><![CDATA[SEO Academy]]></dc:creator><pubDate>Mon, 23 Nov 2026 11:55:17 GMT</pubDate><content:encoded><![CDATA[<p>A page can load perfectly and still tell search engines to prefer the wrong URL. A staging hostname can slip into the canonical tag. An analytics parameter can end up in the sitemap. Test both the clean address and the variants people actually use before rolling out a change to routing, templates, or redirects.</p>
<h2>Decide what each URL should do</h2>
<p>Start with one page and write down which address you want people to find in search. Then decide what should happen when they visit the other addresses.</p>
<ul>
<li><strong>A tracking parameter leaves the page unchanged.</strong> If you need the tagged URL to stay available, it can return <code>200</code> and declare the clean URL in its canonical tag.</li>
<li><strong>An old route has a permanent replacement.</strong> Redirect the old address to the replacement with a <code>301</code> or <code>308</code>, and point new internal links at the final URL.</li>
<li><strong>A parameter changes the content people need.</strong> Check what the page actually returns. A filter that creates a distinct, useful landing page needs its own indexing decision. A blanket rule that strips query strings can send the wrong signal.</li>
</ul>
<p>Google uses canonical declarations, redirects, and sitemap URLs as signals. A consistent setup helps it select the URL you intend. See <a href="https://developers.google.com/search/docs/crawling-indexing/consolidate-duplicate-urls">Google Search Central’s canonicalization guide</a>.</p>
<h2>Fetch the clean and tagged URLs</h2>
<p>Here’s a reproducible check from our site. The commands save the raw HTML and print the final HTTP status, URL, and redirect count. The last command extracts the canonical tags from both files using ripgrep.</p>
<pre><code class="language-bash">base='https://seo-akademiya.by/'
tagged="${base}?utm_source=hashnode-example"

curl -fsSL -o clean.html -w '%{http_code} %{url_effective} (%{num_redirects} redirects)\n' "$base"
curl -fsSL -o tagged.html -w '%{http_code} %{url_effective} (%{num_redirects} redirects)\n' "$tagged"
rg -io "&lt;link[^&gt;]+rel=[\"']canonical[\"'][^&gt;]*&gt;" clean.html tagged.html
</code></pre>
<p>In this check, both URLs returned <code>200</code> with zero redirects. Both HTML responses declared <code>https://seo-akademiya.by/</code> as the canonical URL.</p>
<h2>Turn the check into a release habit</h2>
<ol>
<li>Fetch a sample of real URLs from each template you changed, including a tracked URL and any old route you plan to retire.</li>
<li>Check the final URL and redirect count. Then inspect the canonical in the HTML <code>&lt;head&gt;</code>. It should be an absolute URL for the page you intend to be indexed.</li>
<li>Fetch the canonical target itself. Check that it returns <code>200</code> and serves the expected content. Look for <code>noindex</code> in the robots meta tag and <code>X-Robots-Tag</code> header, and check that crawling is allowed. Compare the target with the URLs your sitemap and internal links use.</li>
<li>When you need to know which URL Google selected for an indexed page, use Search Console’s URL Inspection tool. The raw HTML shows what the server declares. Search Console shows Google’s selection when that information is available.</li>
</ol>
<p>If the tagged URL declares itself canonical, check where the template gets its canonical value. A common implementation mistake is to reuse the incoming request URL wholesale. Build the canonical from the page’s intended public URL and keep the query parameters that genuinely identify the content.</p>
<p>For more examples, see <a href="https://seo-akademiya.by/blog/vnutrennyaya-optimizatsiya/ischerpyvayuschee-rukovodstvo-po-ispolzovaniyu-atributa-rel-canonical/">SEO Academy’s guide to canonical URLs in Russian</a>.</p>
]]></content:encoded></item></channel></rss>