Pull to refresh

Comments 3

How to generate robots.txt file dynamically can you please tell me.

You may just create a special controller action with the "robots.txt" route and generate a response as you wish.


[ApiController]
    [Route("/")]
    public class HomeController : ControllerBase
    {
        [HttpGet("robots.txt")]
        public IActionResult Index()
        {
            return Ok("Hello world");
        }
    }

image

The digital workplace is a central working environment that employees can access from anywhere and at any time – whether they’re on the train, in their home office or at the beach. All data is stored in one location and can be accessed quickly and easily. Your employees are freer to determine when and how they work and therefore more efficient. Discover the digital workplace for your company.
www.infobrez.com
Only those users with full accounts are able to leave comments. Log in, please.

Articles