locked
Dynamic robots.txt for multi-tenant site? RRS feed

  • Question

  • User-575942320 posted

    We have a multi-tenant site, aka the same code serves different content based on the domain.

    It's a fairly small project. It wasn't large enough to warrant a full-on MVC app, so it was done using via .NET Web Pages (4.6.2 Razor syntax). It is hosted via Azure.

    What I'm trying to figure out is how I can serve a different robots.txt file based on the domain. Trying to set the routing via the _AppStart.cshtml doesn't seem to get the job done. Perhaps due to the .txt extension?

    I'm a little lost on this one

    Thursday, May 11, 2017 7:37 PM

All replies