
: 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
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?
More posts by @Miguel251
2 Comments
Sorted by latest first Latest Oldest Best
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)
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.
Terms of Use Create Support ticket Your support tickets Stock Market News! © vmapp.org2025 All Rights reserved.