I want to retrieve the name of the folder that is the root of the site in question.
www.mydomain.com is pointed to C:\Inetpub\mydomain
so www.mydomain.com/home.aspx would be located at C:\Inetpub\mydomain\home.aspx
How can I retrieve mydomain from this through c#?
I have looked at Server.MapPath but it retrieves the whole path (C:\Inetpub\mydomain)