Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Robots.txt File Overrides Robotnik #2

Open
Nicholas-Westby opened this issue May 6, 2015 · 1 comment
Open

Robots.txt File Overrides Robotnik #2

Nicholas-Westby opened this issue May 6, 2015 · 1 comment
Assignees
Labels

Comments

@Nicholas-Westby
Copy link
Collaborator

Seems like the file system version of a robots.txt is favored over a Robotnik robots.txt. The workaround is to ensure there is not robots.txt on the file system, but would be good to find a way to force the Robotnik configuration to be used.

@Nicholas-Westby Nicholas-Westby self-assigned this May 6, 2015
@Nicholas-Westby
Copy link
Collaborator Author

Might require a handler like this (configured in the web.config):

<handlers accessPolicy="Read, Write, Script, Execute">
  <remove name="Robots"/>
  <add name="Robots" verb="*" path="/robots.txt" type="SomeAssembly.SomeHandler, SomeAssembly" preCondition="managedHandler" />
</handlers>

Hopefully there is a way using code to accomplish this, however. Otherwise, a web.config transformation will be necessary on install.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant