Windows 2008 Can IIS7 be configured to force a particular host record?

Steve08

Member
Joined
Jan 23, 2009
Messages
38
..which probably isn't explaining what I want! The situation is this:

I have a domain blahblahblah.com and the domains A-records point that and also www.blahblahblah.com to my site, so users can browse using either. However, what I want is that no matter which they use IIS will always return the page www.blahblahblah.com (and all pages on the site, of course.)

Hope that's a bit clearer!
thanks...

PS - of course, if IIS can be so configured it's likely that the same can be done via web.config ..... somehow!
 
Last edited:
You can do this 2 ways. Create another website for the domain without www and use http redirect to redirect to the www site. Second way is to use the URL Rewrite module for the site and set a canonical host name with it.
 
Back
Top