I am trying to create a Subdomain route in asp.net
this is the current domain
www.example.com/default.aspx
and I am trying to replace
"www" with a subdomain "foo"
foo.example.com/default.aspx
This is my current RouteProivder page
namespace Nop.Plugin.Wca.ExpertEstimator
{
class RouteProvider : IRouteProvider
{
public void RegisterRoutes(RouteCollection routes)
{
var route = routes.MapPageRoute(
"ExpertEstimator",
"/default.aspx",
"~/Plugins/Wca.ExpertEstimator/default.aspx"
);
}
public int Priority
{
get
{
return 0;
}
}
}
}
Any input would be greatly appreciated