Last post May 11, 2017 09:38 PM by PatriceSc
May 11, 2017 07:37 PM|devli9000|LINK
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
May 11, 2017 09:38 PM|PatriceSc|LINK
My first thought would be to do something such as
https://ntotten.com/2008/11/06/robotstxt-httphandler-in-iis7/ but I'm not sure if Azure allows to register this kind of http handler.