<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Zubair Ijaz</title>
    <description>The latest articles on DEV Community by Zubair Ijaz (@zubair_ijaz_187713322469d).</description>
    <link>https://dev.to/zubair_ijaz_187713322469d</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.us-east-2.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F4275998%2Fa37be869-69ce-4f51-b009-df196c851c3a.jpg</url>
      <title>DEV Community: Zubair Ijaz</title>
      <link>https://dev.to/zubair_ijaz_187713322469d</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/zubair_ijaz_187713322469d"/>
    <language>en</language>
    <item>
      <title>robots.txt, noindex or canonical: Which One Do You Actually Need?</title>
      <dc:creator>Zubair Ijaz</dc:creator>
      <pubDate>Tue, 01 Dec 2026 09:44:59 +0000</pubDate>
      <link>https://dev.to/zubair_ijaz_187713322469d/robotstxt-noindex-or-canonical-which-one-do-you-actually-need-475g</link>
      <guid>https://dev.to/zubair_ijaz_187713322469d/robotstxt-noindex-or-canonical-which-one-do-you-actually-need-475g</guid>
      <description>&lt;p&gt;These three are mixed up all the time, and the wrong choice often does the opposite of what you wanted.&lt;/p&gt;

&lt;h2&gt;
  
  
  What each one does
&lt;/h2&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Tool&lt;/th&gt;
&lt;th&gt;Tells crawlers&lt;/th&gt;
&lt;th&gt;Effect&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;
&lt;code&gt;robots.txt&lt;/code&gt; Disallow&lt;/td&gt;
&lt;td&gt;Do not fetch this address&lt;/td&gt;
&lt;td&gt;Saves crawl effort. Does &lt;strong&gt;not&lt;/strong&gt; reliably keep a page out of the index&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;noindex&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;You may fetch it, but do not index it&lt;/td&gt;
&lt;td&gt;Removes the page from results&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;code&gt;rel="canonical"&lt;/code&gt;&lt;/td&gt;
&lt;td&gt;This is a copy; the main version is over there&lt;/td&gt;
&lt;td&gt;Consolidates duplicates. A hint, not a command&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  The classic mistake
&lt;/h2&gt;

&lt;p&gt;Blocking a page in &lt;code&gt;robots.txt&lt;/code&gt; &lt;strong&gt;and&lt;/strong&gt; adding &lt;code&gt;noindex&lt;/code&gt;. The crawler is not allowed to fetch the page, so it never sees the &lt;code&gt;noindex&lt;/code&gt;. The address can still appear in results, without a description, because other sites link to it.&lt;/p&gt;

&lt;p&gt;If you want a page out of the index: allow crawling, serve &lt;code&gt;noindex&lt;/code&gt;, and wait until it has dropped out.&lt;/p&gt;

&lt;h2&gt;
  
  
  When to use which
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;strong&gt;Admin areas, internal search results, endless filter combinations:&lt;/strong&gt; &lt;code&gt;robots.txt&lt;/code&gt;. You do not want them fetched at all.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Thank-you pages, thin tag archives, staging copies that must stay reachable:&lt;/strong&gt; &lt;code&gt;noindex&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;The same content at several addresses&lt;/strong&gt; (tracking parameters, sort orders, print versions): canonical to the main address.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;A page that has moved for good:&lt;/strong&gt; none of these. Use a 301 redirect.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Combinations to avoid
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;noindex&lt;/code&gt; plus a canonical pointing elsewhere: mixed signals. Pick one.&lt;/li&gt;
&lt;li&gt;A canonical pointing to a page that redirects or returns 404.&lt;/li&gt;
&lt;li&gt;Listing &lt;code&gt;noindex&lt;/code&gt; or blocked addresses in the sitemap.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Verify from the outside
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl -sI https://example.com/page &lt;span class="o"&gt;|&lt;/span&gt; grep -i x-robots-tag
curl -s https://example.com/page &lt;span class="o"&gt;|&lt;/span&gt; grep -iE &lt;span class="s1"&gt;'rel="canonical"|name="robots"'&lt;/span&gt;
curl -s https://example.com/robots.txt
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Remember that &lt;code&gt;noindex&lt;/code&gt; can arrive as an HTTP header as well as a meta tag, and a leftover header from staging is easy to miss.&lt;/p&gt;

&lt;p&gt;When you need to check these signals across a whole site instead of one address at a time, a crawler does it in one pass. That is one of the jobs we built &lt;a href="https://rankar.ai" rel="noopener noreferrer"&gt;Rankar.ai&lt;/a&gt; for.&lt;/p&gt;

</description>
      <category>seo</category>
      <category>webdev</category>
      <category>beginners</category>
      <category>html</category>
    </item>
    <item>
      <title>JSON-LD Mistakes That Silently Break Your Structured Data</title>
      <dc:creator>Zubair Ijaz</dc:creator>
      <pubDate>Tue, 01 Dec 2026 09:44:51 +0000</pubDate>
      <link>https://dev.to/zubair_ijaz_187713322469d/json-ld-mistakes-that-silently-break-your-structured-data-f2o</link>
      <guid>https://dev.to/zubair_ijaz_187713322469d/json-ld-mistakes-that-silently-break-your-structured-data-f2o</guid>
      <description>&lt;p&gt;Structured data fails quietly. The page renders, the tests pass, and nothing tells you that search engines discarded the block. These are the mistakes I see most often.&lt;/p&gt;

&lt;h2&gt;
  
  
  1. Invalid JSON
&lt;/h2&gt;

&lt;p&gt;A trailing comma or an unescaped quote in a product name makes the whole block unreadable. Build the object in code and serialise it; never assemble JSON-LD by string concatenation.&lt;br&gt;
&lt;/p&gt;

&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="n"&gt;jsonLd&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nb"&gt;JSON&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;stringify&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="s2"&gt;"@context"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"https://schema.org"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="s2"&gt;"@type"&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="s2"&gt;"Article"&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
  &lt;span class="n"&gt;headline&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="n"&gt;post&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="n"&gt;title&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt;
&lt;span class="p"&gt;}&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;replace&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;/&amp;lt;/&lt;/span&gt;&lt;span class="n"&gt;g&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="s2"&gt;"\\u003c"&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Escaping &lt;code&gt;&amp;lt;&lt;/code&gt; also stops a title containing &lt;code&gt;&amp;lt;/script&amp;gt;&lt;/code&gt; from closing the tag early.&lt;/p&gt;

&lt;h2&gt;
  
  
  2. Markup that does not match the page
&lt;/h2&gt;

&lt;p&gt;If the JSON-LD lists five questions and the visible page shows three, the markup describes content users cannot see. Generate the structured data from the same source as the visible content so they cannot drift apart.&lt;/p&gt;

&lt;h2&gt;
  
  
  3. Relative URLs
&lt;/h2&gt;

&lt;p&gt;&lt;code&gt;"image": "/img/cover.png"&lt;/code&gt; is not reliable. Use absolute addresses for &lt;code&gt;url&lt;/code&gt;, &lt;code&gt;image&lt;/code&gt;, &lt;code&gt;logo&lt;/code&gt; and &lt;code&gt;@id&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  4. Injected only on the client
&lt;/h2&gt;

&lt;p&gt;If the block is added after hydration, crawlers that do not run JavaScript never see it. Render it on the server and confirm with a plain &lt;code&gt;curl&lt;/code&gt; of the page.&lt;/p&gt;

&lt;h2&gt;
  
  
  5. The wrong type for the page
&lt;/h2&gt;

&lt;p&gt;Putting &lt;code&gt;Product&lt;/code&gt; markup on a category page, or &lt;code&gt;FAQPage&lt;/code&gt; on a page without questions, earns nothing and can trigger a manual review. One page, the type that truly describes it.&lt;/p&gt;

&lt;h2&gt;
  
  
  6. Dates in local formats
&lt;/h2&gt;

&lt;p&gt;Use ISO 8601 (&lt;code&gt;2026-12-01T09:00:00+00:00&lt;/code&gt;). &lt;code&gt;01/12/2026&lt;/code&gt; is ambiguous.&lt;/p&gt;

&lt;h2&gt;
  
  
  A release check
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;curl&lt;/code&gt; the page and extract every &lt;code&gt;application/ld+json&lt;/code&gt; block.&lt;/li&gt;
&lt;li&gt;
&lt;code&gt;JSON.parse&lt;/code&gt; each one in CI and fail the build on error.&lt;/li&gt;
&lt;li&gt;Assert that required fields for the type are present.&lt;/li&gt;
&lt;li&gt;Run a sample of pages through a schema validator.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;If you want a structured walk through technical SEO beyond this list, the &lt;a href="https://rankar.ai/academy" rel="noopener noreferrer"&gt;Rankar Academy&lt;/a&gt; has lessons on audits and structured data.&lt;/p&gt;

</description>
      <category>seo</category>
      <category>webdev</category>
      <category>javascript</category>
      <category>tutorial</category>
    </item>
    <item>
      <title>A Technical SEO Checklist Developers Can Run Before Every Release</title>
      <dc:creator>Zubair Ijaz</dc:creator>
      <pubDate>Tue, 01 Dec 2026 09:24:40 +0000</pubDate>
      <link>https://dev.to/zubair_ijaz_187713322469d/a-technical-seo-checklist-developers-can-run-before-every-release-jod</link>
      <guid>https://dev.to/zubair_ijaz_187713322469d/a-technical-seo-checklist-developers-can-run-before-every-release-jod</guid>
      <description>&lt;p&gt;Most SEO damage does not come from bad content. It comes from a release: a redirect rule that loops, a staging "noindex" that ships to production, a canonical tag pointing at the wrong host. Here is a short checklist that fits into a release routine.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;1. Can it be crawled?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;robots.txt&lt;/code&gt; returns 200 and does not block the sections you want indexed.&lt;/li&gt;
&lt;li&gt;No &lt;code&gt;noindex&lt;/code&gt; meta tag or &lt;code&gt;X-Robots-Tag&lt;/code&gt; header left over from staging.&lt;/li&gt;
&lt;li&gt;Important pages answer with 200, not a soft 404 that returns 200 with an error message.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;2. Is there one address per page?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;
&lt;code&gt;http&lt;/code&gt; redirects to &lt;code&gt;https&lt;/code&gt;, and &lt;code&gt;www&lt;/code&gt; and non-&lt;code&gt;www&lt;/code&gt; resolve to one host, in a single hop.&lt;/li&gt;
&lt;li&gt;Every indexable page has a self-referencing canonical with the full absolute address.&lt;/li&gt;
&lt;li&gt;Trailing-slash and uppercase variants redirect instead of serving duplicates.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;3. Does the server send the content?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Fetch the page without running JavaScript and read the HTML. If the title, main heading and body text are missing, search engines and AI crawlers may see an empty shell. Server rendering or prerendering the critical content removes the risk.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;4. Is the head complete?&lt;/strong&gt;&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;One unique &lt;code&gt;&amp;lt;title&amp;gt;&lt;/code&gt; and meta description per page.&lt;/li&gt;
&lt;li&gt;One &lt;code&gt;&amp;lt;h1&amp;gt;&lt;/code&gt;.&lt;/li&gt;
&lt;li&gt;Open Graph and Twitter tags with an absolute image address.&lt;/li&gt;
&lt;li&gt;Valid JSON-LD where it applies. Validate it; a syntax error makes the whole block useless.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;&lt;strong&gt;5. Is the sitemap true?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;The sitemap should list only canonical, indexable, 200-status addresses. Redirects and blocked pages inside a sitemap are a common, silent mistake.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;6. Do internal links point to final addresses?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Links that pass through a redirect waste crawl effort. Link straight to the destination.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;7. Did performance regress?&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;Compare Largest Contentful Paint, Interaction to Next Paint and Cumulative Layout Shift with the previous release on a mid-range phone profile, not on your laptop.&lt;/p&gt;

&lt;p&gt;&lt;strong&gt;Automating it&lt;/strong&gt;&lt;/p&gt;

&lt;p&gt;You can script most of this with &lt;code&gt;curl&lt;/code&gt; and a link checker. When you need the same checks across a whole site with a prioritised list of fixes, a crawler-based audit saves time. We built &lt;a href="https://rankar.ai/rank-audit" rel="noopener noreferrer"&gt;RankAudit&lt;/a&gt; for that job; any crawler that reports status codes, canonicals and indexability per address will cover the list above.&lt;/p&gt;

</description>
      <category>seo</category>
      <category>webdev</category>
      <category>beginners</category>
      <category>performance</category>
    </item>
  </channel>
</rss>
