Mobile app version of vmapp.org
Login or Join
Miguel251

: Redirect multiple cctld's subdomains to tld subdomain I have a site I use for development testing on one of our development servers, it is hosted at dev.domain.com. I basically want to have

@Miguel251

Posted in: #AspNetMvc #Iis7 #Subdomain #UrlRewriting #WebHosting

I have a site I use for development testing on one of our development servers, it is hosted at dev.domain.com.

I basically want to have domain.com, domain.ca, fr.domain.ca all point to dev.domain.com, yet I want the site url to remain domain.com, domain.ca, fr.domain.ca (whichever was originally requested). How do I set this up in IIS 7?

Right now, all I am worried about is testing on the development machine. I also have access to the development machine if I need to run the browser directly on the dev machine.

Is this a simple hosts file change and host headers change in IIS 7? Either way, how would I go about doing this in detail?

10.02% popularity Vote Up Vote Down


Login to follow query

More posts by @Miguel251

2 Comments

Sorted by latest first Latest Oldest Best

 

@Fox8124981

If you have access to your Plesk panel, first of all add all those domains as aliases to point to your main domain. You can create the redirects to your main domain using IIS Redirects section( see more details via the link www.trainsignal.com/blog/iis7-redirect-windows-server-2008)

10% popularity Vote Up Vote Down


 

@Samaraweera270

It's as simple as adding each domain as a host header to your dev.domain.com site bindings. IIS won't change the HTTP_HOST as passed by the client except in certain circumstances, such as a site bound to the loopback address.

10% popularity Vote Up Vote Down


Back to top | Use Dark Theme