first:
I read and tried to implement this and this and which , but I failed completely: (
my route is like:
routes.MapRoute( "DefaultRoute", "{calurl}/{controller}/{action}/{id}", new { calurl = "none", controller = "Subscriber", action = "Index", id = UrlParameter.Optional } );
and I'm trying to use both
"{calurl}.domain.com", "{controller}/{action}/{id}"
therefore, the routed calurl value calurl always come from the subdomain.
and I could have links like:
http:
Today I have
http://domain.com/demo/Subscriber/Register
What i tried
I tried to create my own CustomRoute using the example links above (all 3, one at a time), and I end up screwing up all the time.
and I keep thinking that this is a lot of code to change RouteValue["calurl"] to a subdomain.
What / How can I do this?
source share