Custom domains in a shared hosting MVC site http://forums.asp.net/t/1663322.aspx/1?Custom+domains+in+a+shared+hosting+MVC+site+Tue, 15 Mar 2011 08:23:28 -040016633224342705http://forums.asp.net/p/1663322/4342705.aspx/1?Custom+domains+in+a+shared+hosting+MVC+site+Custom domains in a shared hosting MVC site <p>Hi girls and guys</p> <p>This one may very well be a question for a hosting company, but in my experience sales people are very good at instinctively saying 'yes'! So I thought I'd come to a trusted community instead.</p> <p>I'm building an MVC (3) site (my first one), and it will be aimed at getting sports teams to register to use our service as a site for their team. My issue is that a lot of these teams already have domain names pointing to really simple sites. Even though the features I can provide are going to improve their experience, having to use my address (www.mysitesUrl.com/theirTeamName/) rather than their own domian name (www.theirTeamName.com) could be a deal-breaker.</p> <p>Does anyone know how I go about setting this up in MVC? It would be ideal if the two Urls above <em>both</em> worked - so anyone browsing through my homepage can find their team's page and the teams can tell people their own address if they like.</p> <p>As always, appreciate the help.</p> <p>&nbsp;</p> 2011-03-15T07:39:39-04:004342726http://forums.asp.net/p/1663322/4342726.aspx/1?Re+Custom+domains+in+a+shared+hosting+MVC+site+Re: Custom domains in a shared hosting MVC site <p>Can't you point their domains to an address like <a href="http://www.mysite/TeamName"> http://www.mysite/TeamName</a> or create an alias?</p> 2011-03-15T07:54:14-04:004342768http://forums.asp.net/p/1663322/4342768.aspx/1?Re+Custom+domains+in+a+shared+hosting+MVC+site+Re: Custom domains in a shared hosting MVC site <p>raduenuca - </p> <p>Thanks for the reply.</p> <p>The end result is that, as they browse throught the site, they retain their domain name in the Url. I belive that using the link helper class in MVC keeps everything relative anyway so that'll probably help.</p> <p>So when they hit their 'news' page, I'd like them to see:</p> <p>www.theirDomain.com/news</p> <p>Or if someone finds their team using my service and visits their news page, I'd like <em>them</em> to see:</p> <p>www.myDomain.com/theTeamName/news</p> <p>This may be a very simple request, but not something I've set up before.</p> <p>Are you saying that forwarding and/or using an alias would achieve this?</p> <p>One thing to note is that I'll be using the Url segment /theTeamName/ as a routing parameter - as there will be more than one team using the site.</p> <p>Cheers</p> 2011-03-15T08:23:28-04:00