We "Upendo" to Write for You!

Our team loves to share our thoughts, research, experiences here in our blog. Please enjoy our articles and leave a comment to let us know what you think.

DNN Summit Session: Multi-Site DNN Instances and Robots.txt

Upendo Ventures: DNN SEO and Robots.txt

Our first session at DNN Summit 2021 this year was a short introduction to search engine optimization (SEO) and then a deeper dive on how to manage the Robots.txt file in your DNN website. Management of this critical SEO file is easier than ever on DNN 9.8 and newer. This blog post is a follow-up to provide resources for the event attendees.

In short, you now can manage your robots.txt file(s) directly within DNN itself while logged in as a superuser, and you should review this file regularly, and especially before you launch a new website.

Slide Deck


Multi-Site Support in DNN

In order to support multiple sites that each have their own robots.txt file, leave the default one the way it is already, for your primary website. Then, add a new one for each additional site you wish to support. Usually, this will be a copy of the original robots.txt, but the file name will be preceded by the domain. For example, if the additional site is example.com, then the new robots.txt file for that site will simply be example.com.robots.txt, instead of robots.txt.

Now, when you're logged in as a superuser, you can edit any of the robots.txt files that are found in the root of the website folder, using the existing Config Manager feature.

Code Sample

In order to get this fully working when requested by search engines and other bots, you'll need to first be sure the IIS redirect module is installed, then add redirects for each like you see in the example below. You'll want to put the redirects inside of the <system.webServer> section.


    <rewrite>
      <rules>
        <rule name="Robots.txt: Demo Site 1" stopProcessing="true">
          <match url=".+" />
          <conditions>
            <add input="{HTTP_HOST}" pattern="localhost.demo1" />
            <add input="{REQUEST_FILENAME}" pattern="robots.txt" />
          </conditions>
          <action type="Rewrite" url="localhost.demo1.{C:0}" logRewrittenUrl="true" />
        </rule>
        <rule name="Robots.txt: Demo Site 2" stopProcessing="true">
          <match url=".+" />
          <conditions>
            <add input="{HTTP_HOST}" pattern="localhost.demo2" />
            <add input="{REQUEST_FILENAME}" pattern="robots.txt" />
          </conditions>
          <action type="Rewrite" url="localhost.demo2.{C:0}" logRewrittenUrl="true" />
        </rule>
        <rule name="Robots.txt: Demo Site 3" stopProcessing="true">
          <match url=".+" />
          <conditions>
            <add input="{HTTP_HOST}" pattern="localhost.demo3" />
            <add input="{REQUEST_FILENAME}" pattern="robots.txt" />
          </conditions>
          <action type="Rewrite" url="localhost.demo3.{C:0}" logRewrittenUrl="true" />
        </rule>
      </rules>
    </rewrite>
    

Keeping the example code above in mind, now, when you are on the localhost.demo website and ask for the robots.txt file, you'll see the specific file that's only maintained for that website.

Contact Us
Let's Chat!

We'd love to work with you. Let's talk about how.

Contact Us


About the Author

Will StrohlFounder & CEO
Upendo Ventures
Overall, Will has nearly 20 years of experience helping website owners become more successful in all areas, including mentoring, website development, marketing, strategy, e-commerce, and more.

blog comments powered by Disqus

Featured Posts

  • Your AI Keeps Forgetting. Here Is How Your Business Can Stop Paying for It.

    Artificial intelligence is being promoted as a way to help businesses save time, reduce repetitive work, improve customer service, and make better use of their existing knowledge. Those benefits are real. However, there is an important limitation that many everyday business users are discovering only after they have invested significant time in these tools: Your AI assistant may not reliably remember your work. In the original article, “Your AI Keeps Forgetting Because Forgetfulness Is More Profitable,” Upendo Ventures founder Will Strohl explains how ...

    July 17, 2026
  • A Website Is Not a Checkbox. And This Conversation Proved Why.

    I recently had the opportunity to sit down with Ranger Kielak, host of the South of SF podcast, for a conversation titled Your Website Isn’t a Checkbox: Building a Digital Presence That Actually Works. ...

    February 17, 2026
  • Featured by San Carlos Life: Feeling the Upendo

    Every now and then, something happens that makes you pause and genuinely reflect. Feel the Upendo with us... ...

    February 16, 2026
  • Practical AI Training for Everyday People & Business Is Here

    If you’re considering AI for your business and want guidance before committing to tools or processes, this AI training is a smart first step. ...

    January 26, 2026
  • Finish the Year Strong (While Your Competitors Take Time Off)

    While most businesses start to slow down toward the end of the year, this is actually one of the best times to take action. ...

    October 28, 2025
Read More

Popular Posts

  • Your AI Keeps Forgetting. Here Is How Your Business Can Stop Paying for It.

    Artificial intelligence is being promoted as a way to help businesses save time, reduce repetitive work, improve customer service, and make better use of their existing knowledge. Those benefits are real. However, there is an important limitation that many everyday business users are discovering only after they have invested significant time in these tools: Your AI assistant may not reliably remember your work. In the original article, “Your AI Keeps Forgetting Because Forgetfulness Is More Profitable,” Upendo Ventures founder Will Strohl explains how ...

    July 17, 2026
  • A Website Is Not a Checkbox. And This Conversation Proved Why.

    I recently had the opportunity to sit down with Ranger Kielak, host of the South of SF podcast, for a conversation titled Your Website Isn’t a Checkbox: Building a Digital Presence That Actually Works. ...

    February 17, 2026
  • Featured by San Carlos Life: Feeling the Upendo

    Every now and then, something happens that makes you pause and genuinely reflect. Feel the Upendo with us... ...

    February 16, 2026
  • Practical AI Training for Everyday People & Business Is Here

    If you’re considering AI for your business and want guidance before committing to tools or processes, this AI training is a smart first step. ...

    January 26, 2026
  • A Year of Momentum, Trust, and Building What Actually Matters

    As we look back on the past calendar year, one thing stands out more than anything else: this has been a year of trust. ...

    January 19, 2026
Read More

Are you a growth-focused business owner? Migrate your website to Upendo. Let's grow together!