ChordsTech.MultiSiteRobots
1.0.0
A simple lightweight .Net solution for websites which need easy management of multiple robots.txt
Install-Package ChordsTech.MultiSiteRobots -Version 1.0.0
dotnet add package ChordsTech.MultiSiteRobots --version 1.0.0
<PackageReference Include="ChordsTech.MultiSiteRobots" Version="1.0.0" />
paket add 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.
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.
Release Notes
1.0.0 Initial release
Dependencies
This package has no dependencies.
Used By
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version History
Version | Downloads | Last updated |
---|---|---|
1.0.0 | 205 | 5/4/2020 |