ChordsTech.MultiSiteRobots 1.0.0

dotnet add package ChordsTech.MultiSiteRobots --version 1.0.0                
NuGet\Install-Package ChordsTech.MultiSiteRobots -Version 1.0.0                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="ChordsTech.MultiSiteRobots" Version="1.0.0" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add ChordsTech.MultiSiteRobots --version 1.0.0                
#r "nuget: ChordsTech.MultiSiteRobots, 1.0.0"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install ChordsTech.MultiSiteRobots as a Cake Addin
#addin nuget:?package=ChordsTech.MultiSiteRobots&version=1.0.0

// Install ChordsTech.MultiSiteRobots as a Cake Tool
#tool nuget:?package=ChordsTech.MultiSiteRobots&version=1.0.0                

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.

Product Compatible and additional computed target framework versions.
.NET Framework net is compatible. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

This package has no dependencies.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last updated
1.0.0 1,311 5/4/2020

1.0.0 Initial release