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.
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:
www.theirDomain.com/news
Or if someone finds their team using my service and visits their news page, I'd like
them to see:
www.myDomain.com/theTeamName/news
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.
french_duke
Member
196 Points
147 Posts
Custom domains in a shared hosting MVC site
Mar 15, 2011 07:39 AM|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.
raduenuca
All-Star
24675 Points
4250 Posts
Re: Custom domains in a shared hosting MVC site
Mar 15, 2011 07:54 AM|LINK
Can't you point their domains to an address like http://www.mysite/TeamName or create an alias?
Radu Enuca | Blog
french_duke
Member
196 Points
147 Posts
Re: Custom domains in a shared hosting MVC site
Mar 15, 2011 08:23 AM|LINK
raduenuca -
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:
www.theirDomain.com/news
Or if someone finds their team using my service and visits their news page, I'd like them to see:
www.myDomain.com/theTeamName/news
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.
Cheers