1

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

1 Answers1

-1

You will find detailed information in the Article Here

Earlier answers to simlar questions Question 1 or Question 2

Community
  • 1
  • 1
udaya kumar
  • 169
  • 8