ASP.NET MVC project structure with multiple subdomains? -


i have task create site contains subsites. subsites use same database , have relations. domain names should differ. example, domain www.mysite.com. subsites

www.books.mysite.com

www.blog.mysite.com

www.sport.mysite.com

i need project structure start application. can give me idea? can create mvc4 projects in 1 solution? or can domain routing?

this has been answered elsewhere, not in great detail, i'll collate relevant points here.

a visual studio solution has no actual relation deployment of site; it's container various projects. when deploy these projects, can define bindings them in iis. relatively straightforward process; if you're doing simple way ui you'll this:

iis site binding ui

which lets define addresses point where. during development, you'll need similar bindings in host file play part of these iis bindings local machine.


Comments

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -