<?xml version="1.0" encoding="UTF-8"?><rss version="2.0" xmlns:content="http://purl.org/rss/1.0/modules/content/">
  <channel>
    <title>DomainRedirect &amp;mdash; Attach to Process</title>
    <link>https://devblog.dinobansigan.com/tag:DomainRedirect</link>
    <description>Thoughts and Notes on Software Development</description>
    <pubDate>Mon, 27 Apr 2026 16:23:41 +0000</pubDate>
    <image>
      <url>https://i.snap.as/4wmUdb6N.png</url>
      <title>DomainRedirect &amp;mdash; Attach to Process</title>
      <link>https://devblog.dinobansigan.com/tag:DomainRedirect</link>
    </image>
    <item>
      <title>Domain Redirect via HTML and JavaScript</title>
      <link>https://devblog.dinobansigan.com/domain-redirect-via-html-and-javascript?pk_campaign=rss-feed</link>
      <description>&lt;![CDATA[I purchased a new domain, nowlisteningto.com for my Now Listening to... music blog. Prior to buying the new domain name, I didn&#39;t realize how big of a pain it was going to be to set up redirection. Turns out, you can&#39;t setup a 301 redirect using just DNS records. It has to be done on a web server level, or via your domain registrar. My issue is that I can&#39;t use my domain registrar for redirects, because I use Netlify to manage the DNS records for my domains. And from what I can see, Netlify doesn&#39;t have a menu option for redirecting from one domain to another.&#xA;&#xA;So, I ended up doing a redirect via HTML and JavaScript, by hosting a static site on Netlify. This static site&#39;s purpose is to simply redirect from nowlisteningto.dinobansigan.com to nowlisteningto.com. It is not ideal, but this will do for now until I figure out a better solution. Thanks to this answer on StackOverflow for the idea.&#xA;&#xA;Tags: #CustomDomain #DomainRedirect #HTML #JavaScript&#xA;&#xA;a href=&#34;https://remark.as/p/devblog.dinobansigan.com/domain-redirect-via-html-and-javascript&#34;Discuss.../a or leave a comment below.]]&gt;</description>
      <content:encoded><![CDATA[<p>I purchased a new domain, <strong>nowlisteningto.com</strong> for my <a href="https://nowlisteningto.com/">Now Listening to... music blog</a>. Prior to buying the new domain name, I didn&#39;t realize how big of a pain it was going to be to set up redirection. Turns out, you can&#39;t setup a 301 redirect using just DNS records. It has to be done on a web server level, or via your domain registrar. My issue is that I can&#39;t use my domain registrar for redirects, because I use Netlify to manage the DNS records for my domains. And from what I can see, Netlify doesn&#39;t have a menu option for redirecting from one domain to another.</p>

<p>So, I ended up doing a redirect via HTML and JavaScript, by hosting a static site on Netlify. This static site&#39;s purpose is to simply redirect from <em>nowlisteningto.dinobansigan.com</em> to <em>nowlisteningto.com</em>. It is not ideal, but this will do for now until I figure out a better solution. Thanks to this <a href="https://stackoverflow.com/a/5411601/5041911">answer on StackOverflow</a> for the idea.</p>

<p><em>Tags: <a href="https://devblog.dinobansigan.com/tag:CustomDomain" class="hashtag"><span>#</span><span class="p-category">CustomDomain</span></a> <a href="https://devblog.dinobansigan.com/tag:DomainRedirect" class="hashtag"><span>#</span><span class="p-category">DomainRedirect</span></a> <a href="https://devblog.dinobansigan.com/tag:HTML" class="hashtag"><span>#</span><span class="p-category">HTML</span></a> <a href="https://devblog.dinobansigan.com/tag:JavaScript" class="hashtag"><span>#</span><span class="p-category">JavaScript</span></a></em></p>

<p><strong><a href="https://remark.as/p/devblog.dinobansigan.com/domain-redirect-via-html-and-javascript">Discuss...</a></strong> or leave a comment below.</p>
]]></content:encoded>
      <guid>https://devblog.dinobansigan.com/domain-redirect-via-html-and-javascript</guid>
      <pubDate>Tue, 15 Dec 2020 02:00:00 +0000</pubDate>
    </item>
  </channel>
</rss>