Last post Mar 15, 2011 09:23 AM by french_duke
Mar 15, 2011 08:39 AM|french_duke|LINK
Hi girls and guys
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.
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.
Does anyone know how I go about setting this up in MVC? It would be ideal if the two Urls above
both 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.
As always, appreciate the help.
Mar 15, 2011 08:54 AM|raduenuca|LINK
Can't you point their domains to an address like
http://www.mysite/TeamName or create an alias?
Mar 15, 2011 09:23 AM|french_duke|LINK
Thanks for the reply.
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.
So when they hit their 'news' page, I'd like them to see:
Or if someone finds their team using my service and visits their news page, I'd like
them to see:
This may be a very simple request, but not something I've set up before.
Are you saying that forwarding and/or using an alias would achieve this?
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.