I have my website hosted in the mywebsite folder of www.example.com and I visit https://www.example.com/mywebsite/home/about.
I have a requirement to get the domain name from baseurl and based on the domain name we need to change the config connectionstring
How do I get the base url part in program.cs? The part that I am looking for is https://www.example.com