'is it possible to add custom word(parameter) before *.localhost in ASP.NET mvc 4?

I have a question about one issue what I want to implement in my project... I've two production domains, based on subdomain I change some functionality in my app, and for some reasons debugging on *.localhost for now is quite difficult for now(because I need to test two different functionalities in one domain), so I thinked that somehow I can add some button which could switch my *.localhost subdomains. what I expect:

domain1.localhost:59328/controller/action domain2.localhost:59328/controller/action

when I pressed button it switchs domain1 to domain2 and vice verse...

So, is it possible somehow?

I'm using IIS express on localhost

P.S i'm new in asp.net routing so I don't know much about it...



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source