<?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: Riichi Mirza</title>
    <description>The latest articles on DEV Community by Riichi Mirza (@riichimirza).</description>
    <link>https://dev.to/riichimirza</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%2F4205717%2F24dca5c3-01f7-45d3-9e37-7e48c0527ad9.png</url>
      <title>DEV Community: Riichi Mirza</title>
      <link>https://dev.to/riichimirza</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/riichimirza"/>
    <language>en</language>
    <item>
      <title>5 QR code mistakes that quietly waste your print budget</title>
      <dc:creator>Riichi Mirza</dc:creator>
      <pubDate>Sun, 25 Oct 2026 17:05:16 +0000</pubDate>
      <link>https://dev.to/riichimirza/5-qr-code-mistakes-that-quietly-waste-your-print-budget-37op</link>
      <guid>https://dev.to/riichimirza/5-qr-code-mistakes-that-quietly-waste-your-print-budget-37op</guid>
      <description>&lt;p&gt;QR codes still work — but bad ones burn money on reprints and dead scans. Here are five mistakes I see constantly:&lt;/p&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Static codes you can't update&lt;/strong&gt; — Prefer dynamic QR so the destination can change without a reprint.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No call-to-action&lt;/strong&gt; — "Scan for menu" next to the code beats a lonely square.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Desktop-only landing pages&lt;/strong&gt; — Most scans are mobile; test the destination on a phone.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;No tracking&lt;/strong&gt; — Add UTM parameters (or a shortener with analytics) so you know which flyer worked.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Too small / low contrast&lt;/strong&gt; — Aim for ~2 cm minimum and high contrast; always print-test one sheet.&lt;/li&gt;
&lt;/ol&gt;

&lt;p&gt;If you need a free generator for campaigns, I keep one here: &lt;a href="https://riichimirza.com/tools/qr-code-generator/" rel="noopener noreferrer"&gt;https://riichimirza.com/tools/qr-code-generator/&lt;/a&gt;&lt;/p&gt;

</description>
      <category>seo</category>
      <category>marketing</category>
      <category>webdev</category>
      <category>productivity</category>
    </item>
    <item>
      <title>Do URL shorteners hurt SEO? What actually happens with 301s, 302s and link equity</title>
      <dc:creator>Riichi Mirza</dc:creator>
      <pubDate>Sun, 25 Oct 2026 16:19:44 +0000</pubDate>
      <link>https://dev.to/riichimirza/do-url-shorteners-hurt-seo-what-actually-happens-with-301s-302s-and-link-equity-l7p</link>
      <guid>https://dev.to/riichimirza/do-url-shorteners-hurt-seo-what-actually-happens-with-301s-302s-and-link-equity-l7p</guid>
      <description>&lt;p&gt;Every few weeks someone asks me whether putting a short link in a tweet, a PDF, or a QR code "kills the SEO". The honest answer: &lt;strong&gt;it depends on the redirect your shortener returns&lt;/strong&gt; — and you can check that in ten seconds.&lt;/p&gt;

&lt;h2&gt;
  
  
  Check what your shortener actually returns
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight shell"&gt;&lt;code&gt;curl &lt;span class="nt"&gt;-sI&lt;/span&gt; https://short.example/abc | &lt;span class="nb"&gt;grep&lt;/span&gt; &lt;span class="nt"&gt;-iE&lt;/span&gt; &lt;span class="s1"&gt;'^(HTTP|location)'&lt;/span&gt;
&lt;span class="c"&gt;# HTTP/2 301&lt;/span&gt;
&lt;span class="c"&gt;# location: https://example.com/landing&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;That's all a shortener is: a lookup table plus an HTTP redirect. What matters is the status code.&lt;/p&gt;

&lt;div class="table-wrapper-paragraph"&gt;&lt;table&gt;
&lt;thead&gt;
&lt;tr&gt;
&lt;th&gt;Status&lt;/th&gt;
&lt;th&gt;Meaning&lt;/th&gt;
&lt;th&gt;SEO effect&lt;/th&gt;
&lt;/tr&gt;
&lt;/thead&gt;
&lt;tbody&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;301&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Moved permanently&lt;/td&gt;
&lt;td&gt;Google consolidates signals to the target. Best for links you'll never change.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;308&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Permanent, keeps method&lt;/td&gt;
&lt;td&gt;Same as 301 for SEO.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;302 / 307&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;Temporary&lt;/td&gt;
&lt;td&gt;Google &lt;em&gt;usually&lt;/em&gt; still follows and, if it stays long, treats it like permanent — but it's a weaker, slower signal.&lt;/td&gt;
&lt;/tr&gt;
&lt;tr&gt;
&lt;td&gt;&lt;strong&gt;200 + JS/meta refresh&lt;/strong&gt;&lt;/td&gt;
&lt;td&gt;"Interstitial" page&lt;/td&gt;
&lt;td&gt;Worst case: an extra page, often with ads, sometimes not followed cleanly.&lt;/td&gt;
&lt;/tr&gt;
&lt;/tbody&gt;
&lt;/table&gt;&lt;/div&gt;

&lt;h2&gt;
  
  
  Things that actually cause problems
&lt;/h2&gt;

&lt;ol&gt;
&lt;li&gt;
&lt;strong&gt;Interstitial/ad pages.&lt;/strong&gt; Some free shorteners show an ad page before redirecting. Crawlers and users both hate it.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Redirect chains.&lt;/strong&gt; &lt;code&gt;short → tracking domain → http → https → www&lt;/code&gt;. Each hop adds latency and risk. Aim for one hop.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Shortener domains on spam lists.&lt;/strong&gt; Shared shortener domains get abused; some platforms then block or warn on them.&lt;/li&gt;
&lt;li&gt;
&lt;strong&gt;Dead services.&lt;/strong&gt; If the shortener shuts down, every link breaks. This is the real long-term risk.&lt;/li&gt;
&lt;/ol&gt;

&lt;h2&gt;
  
  
  Where short links are fine
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Social posts, emails, SMS, print/QR: the links are usually nofollow or not crawled anyway — the goal is clean, trackable clicks.&lt;/li&gt;
&lt;li&gt;Internal analytics: a 301 with UTM parameters on the target works well.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Where to avoid them
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Links &lt;em&gt;you&lt;/em&gt; place on your own site to your own pages — just link directly.&lt;/li&gt;
&lt;li&gt;Canonical tags, sitemaps, hreflang — always final URLs.&lt;/li&gt;
&lt;/ul&gt;

&lt;h2&gt;
  
  
  Minimal DIY shortener (for the curious)
&lt;/h2&gt;



&lt;div class="highlight js-code-highlight"&gt;
&lt;pre class="highlight javascript"&gt;&lt;code&gt;&lt;span class="c1"&gt;// Node, no deps — illustrates the core idea&lt;/span&gt;
&lt;span class="k"&gt;import&lt;/span&gt; &lt;span class="nx"&gt;http&lt;/span&gt; &lt;span class="k"&gt;from&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;node:http&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt;
&lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;links&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;docs&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;https://example.com/docs&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt; &lt;span class="p"&gt;};&lt;/span&gt;
&lt;span class="nx"&gt;http&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;createServer&lt;/span&gt;&lt;span class="p"&gt;((&lt;/span&gt;&lt;span class="nx"&gt;req&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="nx"&gt;res&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="o"&gt;=&amp;gt;&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt;
  &lt;span class="kd"&gt;const&lt;/span&gt; &lt;span class="nx"&gt;target&lt;/span&gt; &lt;span class="o"&gt;=&lt;/span&gt; &lt;span class="nx"&gt;links&lt;/span&gt;&lt;span class="p"&gt;[&lt;/span&gt;&lt;span class="nx"&gt;req&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nx"&gt;url&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;slice&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;1&lt;/span&gt;&lt;span class="p"&gt;)];&lt;/span&gt;
  &lt;span class="k"&gt;if &lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="o"&gt;!&lt;/span&gt;&lt;span class="nx"&gt;target&lt;/span&gt;&lt;span class="p"&gt;)&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="nx"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;writeHead&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;404&lt;/span&gt;&lt;span class="p"&gt;).&lt;/span&gt;&lt;span class="nf"&gt;end&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt; &lt;span class="k"&gt;return&lt;/span&gt;&lt;span class="p"&gt;;&lt;/span&gt; &lt;span class="p"&gt;}&lt;/span&gt;
  &lt;span class="nx"&gt;res&lt;/span&gt;&lt;span class="p"&gt;.&lt;/span&gt;&lt;span class="nf"&gt;writeHead&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;301&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="p"&gt;{&lt;/span&gt; &lt;span class="na"&gt;Location&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="nx"&gt;target&lt;/span&gt;&lt;span class="p"&gt;,&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;Cache-Control&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="p"&gt;:&lt;/span&gt; &lt;span class="dl"&gt;'&lt;/span&gt;&lt;span class="s1"&gt;max-age=3600&lt;/span&gt;&lt;span class="dl"&gt;'&lt;/span&gt; &lt;span class="p"&gt;}).&lt;/span&gt;&lt;span class="nf"&gt;end&lt;/span&gt;&lt;span class="p"&gt;();&lt;/span&gt;
&lt;span class="p"&gt;}).&lt;/span&gt;&lt;span class="nf"&gt;listen&lt;/span&gt;&lt;span class="p"&gt;(&lt;/span&gt;&lt;span class="mi"&gt;8080&lt;/span&gt;&lt;span class="p"&gt;);&lt;/span&gt;
&lt;/code&gt;&lt;/pre&gt;

&lt;/div&gt;



&lt;p&gt;Real services add persistence, rate-limiting, abuse checks, and click stats — but the SEO-relevant part is just that &lt;code&gt;301&lt;/code&gt;.&lt;/p&gt;

&lt;h2&gt;
  
  
  TL;DR
&lt;/h2&gt;

&lt;ul&gt;
&lt;li&gt;Use a shortener that returns a &lt;strong&gt;single 301&lt;/strong&gt; with no interstitial.&lt;/li&gt;
&lt;li&gt;Don't use short links for your own internal links or canonicals.&lt;/li&gt;
&lt;li&gt;Test with &lt;code&gt;curl -I&lt;/code&gt; before you print anything.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;I built a small &lt;a href="https://riichimirza.com/tools/url-shortener/" rel="noopener noreferrer"&gt;free URL shortener&lt;/a&gt; while working on this — no sign-up, no expiry, no preview or waiting page; links look like &lt;code&gt;riichimirza.com/s/abc&lt;/code&gt; — if you want to try one. Run the &lt;code&gt;curl&lt;/code&gt; check on it too; you should verify every tool, including mine.&lt;/p&gt;

&lt;p&gt;What redirect does your favourite shortener return? Curious what people find.&lt;/p&gt;

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