0 votes

ChordsTech.MultiSiteRobots

A simple lightweight .Net solution for websites which need easy management of multiple robots.txt

Once you have the ChordsTech.MultiSiteRobots.dll downloaded, simply add the following line to start intercepting robots.txt file requests.

<system.webServer>

   <handlers accessPolicy="Read, Write, Script, Execute">      

  <remove name="ChordsTech.MultiSiteRobots" />

      <add name="ChordsTech.MultiSiteRobots" verb="*" path="/robots.txt" type="ChordsTech.MultiSiteRobots.RobotsTxt" />

    </handlers>

</system.webServer>

You can then add robots.txt files for all your domains e.g:

chordstech.com.robots.txt

staging.chordstech.com.robots.txt

another-site.com.robots.txt

 

The code will intercept the robots.txt request and match the domain to the correct robots.txt file.

Tested predominatley in V8 but this should work with all versions.

Screenshots

 Download package
version 1.0.0

NuGet install instructions for Umbraco 7.10.0-8.18.13

Install-Package ChordsTech.MultiSiteRobots

Package owner

SinkyPars

SinkyPars

SinkyPars has 175 karma points

Package Compatibility

This package is compatible with the following versions as reported by community members who have downloaded this package:
Untested or doesn't work on Umbraco Cloud
Version 8.18.x (untested)

You must login before you can report on package compatibility.

Previously reported to work on versions:

Package Information

  • Package owner: SinkyPars
  • Created: 04/05/2020
  • Current version 1.0.0
  • .NET version 4.6.2
  • License MIT
  • Downloads on Our: 93
  • Downloads on NuGet: 1.1K
  • Total downloads : 1.2K