Skip to content

An Umbraco package that serves a different robots.txt for each domain.

License

Notifications You must be signed in to change notification settings

rhythmagency/robotnik

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Robotnik

An Umbraco package that serves a different robots.txt for each domain.

Example

Usage

Install the Umbraco package at: https://our.umbraco.org/projects/developer-tools/robotnik

Once installed, just add a few text files and add some app settings to your web.config to map them to domains. For example:

<appSettings>
  <!-- http://staging.somesite.com/robots.txt -->
  <add key="robotnik-staging.somesite.com" value="~/robots-staging.txt" />
  <!-- http://www.somesite.com/robots.txt -->
  <add key="robotnik-www.somesite.com" value="~/robots-production.txt" />
  <!-- You can use this to specify a default to avoid a 404. -->
  <add key="robotnik-default" value="~/robots-staging.txt" />
</appSettings>

Code Conventions

Here are the code conventions when contributing to this repository:

  • Spaces instead of tabs.
  • Lots of code comments (properties, methods, classes).
  • Follow existing standards you see in each file.

Robotnik Logo

About

An Umbraco package that serves a different robots.txt for each domain.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published