i have hosted my site as www.sample.com but i need
- -user1.sample.com
- -user2.sample.com
- -user3.sample.com
Is It Possible? every User as SubDomain Name.
i have hosted my site as www.sample.com but i need
Is It Possible? every User as SubDomain Name.
You don't actually "create" new subdomains - instead you set-up "wildcard" entries that serve as catch-alls for all unresolved names:
Host:
header to determine what was inspected. If you're using ASP.NET with Routing (which ASP.NET MVC does automatically) you can use a custom RouteBase
subclass to let you use Host
header values in routes, as per this example: http://benjii.me/2015/02/subdomain-routing-in-asp-net-mvc/Note that both options for Step 2 require customer server configuration options (either an IP-address binding, or to be running Windows Server 2016). If you're using a Shared-hosting provider (HostGator, DreamHost, etc - even Azure Websites) then this will not be available to you as they typically don't offer those to their customers - but ask them anyway to see if they can support you.