Note that there are some explanatory texts on larger screens.

plurals
  1. POAsp.net MVC Domain Routing or Setting domain on optional MVC URL
    primarykey
    data
    text
    <p>How to set payed domains on optional URLs in one Asp.net MVC project like this:</p> <ul> <li><code>http://domain.com/Controller/Action?id</code> -----> www.example.com</li> <li><code>domain.com/Controller/Action?id2</code> -----> www.sample.net</li> </ul> <p>In another words we want to map each URL to separate domain name in 1 MVC project.</p> <p>It's necessary to say, that a question near this have been asked before in <a href="https://stackoverflow.com/questions/11107250/mvc-3-domain-routing">Stackoverflow</a> with some changes. And also asked before in <a href="http://forums.asp.net/t/1864602.aspx/1?Setting%20domain%20on%20optional%20MVC%20URL" rel="nofollow noreferrer">official asp.net site</a> by me. To clarifying the Problem, I reproduced question to achieve great answer. This question also asked from <a href="http://odetocode.com/" rel="nofollow noreferrer">Mr. k.Scott Allen</a> before, so he suggest me to read <a href="https://stackoverflow.com/questions/4988138/how-to-make-irouteconstraint-filter-route">IRouteConstrain</a> topic in MVC.</p> <p>Any way, the required configuration in Mapping routes at the Global.asax file are not bright for me.</p> <p>The information that I have gathered until now are:</p> <ol> <li><p>First of all, Consider we have configured required DNS options to handle requests connect to related Authoritative DNS server.</p></li> <li><p>And now, We need to do some changes in <code>Global.asax</code> file by configuring MapRoutes.</p></li> </ol> <p>Please Answer this question by implementing above samples.Thanks a lot.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload