Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

mvc3 routing with 2 different domains

I've developed a multi-culture app in mvc3. I have a table that holds a domain list (currently 2 records):

  1. www.mydomain.com -> en-US
  2. www.mydomain.pl -> pl-PL

My app dynamically checks which domain you're coming from and then sets the CurrentCultureUI depending on the domain. This works fine on my localhost as I've also added these domains to my host file, however i'm not sure how I would handle this on the live envirenment?? (yes i did purchase both domains already) any ideas?

EDIT: I've purchased a '.com' domain AND Hosting from godaddy AND another '.pl' domain from a different registrar (home.pl). I've uploaded my site to the godaddy but the 'pl' version doesn't work. Now, when i go to my domain mngr for '.pl' domain i have an option to "use other host" and text boxes for "DNS" and "IP". Is this what i need to do? what would i need to get from godaddy? to 'home.pl' domain configuration??

like image 795
ShaneKm Avatar asked Oct 10 '22 15:10

ShaneKm


1 Answers

I'm not see any problem if it's work locally with hosts file. In real life no difference because host file replace DNS records in real world. Point your real domains to same IP address. Easy for support future domains point .com to IP address and in other domains add CNAME to .com domain. In this case if your IP address was changed you need change only DNS records in .com domain.

like image 112
Kuvalda.Spb.Ru Avatar answered Nov 15 '22 10:11

Kuvalda.Spb.Ru