ChordsTech.MultiSiteRobots
1.0.0
dotnet add package ChordsTech.MultiSiteRobots --version 1.0.0
NuGet\Install-Package ChordsTech.MultiSiteRobots -Version 1.0.0
<PackageReference Include="ChordsTech.MultiSiteRobots" Version="1.0.0" />
paket add ChordsTech.MultiSiteRobots --version 1.0.0
#r "nuget: ChordsTech.MultiSiteRobots, 1.0.0"
// 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 | Versions Compatible and additional computed target framework versions. |
---|---|
.NET Framework | net is compatible. |
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