So, the main premise of this problem is that I have one hosted web space that comes with two domain names. I'm not sure how to configure routing in asp.net mvc, so the first thing I would check would be this host in the request object so that I can have more user traffic to two separate parts of my site.
For example:
http://www.mywebsite1.com/products/14 http://www.mywebsite2.com/products/14
How do you route so that these two URLs end in returning two different pages based on the host context used in the request?
Thanks in advance!
, - URL .
: Asp.Net
- URL- IIS7 , , . , , URL-, :
http//www.example1.org/-/1 → http//www.example1.org/example1/Something/1 http//www.example2.org/-/1 → http//www.example2.org/example2/Something/1
URL, - .
Source: https://habr.com/ru/post/1706206/More articles:How can I speed up reading Perl for a directory with 250,000 files? - performanceChoosing a date format for aggregate computing from a database using Django - djangoDelete #ifdef DEBUG parts for release or not? - cCan someone explain the marshal. StructureToPtr - pointersjQuery UI sortable, each sortable div contains an iFrame that updates in FF3 but not in IE7 - javascriptSilverlight: custom template for hierarchical tree - controlsC / C ++ for USE_HEAP or USE_STACK - c ++Which ldap query returns user objects that are now removed from the active directory? - active-directoryWould this be the right place to use the java interface keyword? - javaIterating read () from a socket - c ++All Articles