Gemini23,
Here is what I did in IIS 6 to have ht
tp://domain.com be a permanent 301 redirect to ht
tp://www.domain.com
Not sure if this is the best solution, but it seems to work.
Setup the primary site with a host header of www.domain.com.
Point the site to the appropriate folder containing the web site files.
Setup the secondary (redirect) site with a host header of domain.com
On the Home Directory Tab in IIS, Select the "A redirection to a URL" radio option.
Set the Redirect to: text box to the domain to which you are trying to redirect.
In our example, ht
tp://www.domain.com
Be sure to check "The exact URL entered above" & "A permanent redirection for this resource"
That should cause domain.com to redirect to www.domain.com.
If you check both domains with a header checker tool such as, [
stepforth.com...] everything should check out.
[edited by: marcel at 4:48 am (utc) on May 26, 2010]
[edit reason] delinked example urls [/edit]