: I think if I understand the question correctly, you currently have a website setup (www.website.com) that is currently an ASP.Net application. When a user enters 'subdomain.website.com' you want
I think if I understand the question correctly, you currently have a website setup (www.website.com) that is currently an ASP.Net application. When a user enters 'subdomain.website.com' you want the exact same website to respond, but within the code of the application some function/features/content/etc. would be changed based on that particular subdomain?
It sounds like all you need is for a CNAME DNS record to be created and then the host header for that subdomain added to your website. Your application would then handle the rest. A subdomain is typically a separate website. Many control panels will create a folder and then associate that folder as the document root of the site (essentially creating a separate IIS website for the subdomain that points to the subfolder). In your case, it sounds like the document roots are being set something like this:
IIS site 1 = website.com: document root = (some-filesystem-path)webroot
IIS site 2 = subdomain.website.com: document root = (some-filesystem-path)webrootsubdomain
What you really want to have happen is to only have a single IIS website with multiple host headers. It may be that you just need to setup an alias rather than a subdomain in your control panel.
More posts by @Deb1703797
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2024 All Rights reserved.