www.domain.com,in,IIS7?" /> redirecting domain.com to www.domain.com in IIS7? - Problems and solutions to issues related to Microsoft : OS, Applications, Development, Hardware, Server, Internet Protocols, Database, Exchange .

Question : redirecting domain.com to www.domain.com in IIS7?

Hi

What is the proper way to setup a website in IIS7 to redirect the non WWW part to the WWW part?

i dont want to host both, i want to do a 301 redirect for SEO purposes

Answer : redirecting domain.com to www.domain.com in IIS7?

Hi Websss,

delete the previous rule... Sorry, my fault, that is for a different scenario.

Import.htacess
--
RewriteCond %{HTTP_HOST} ^basistraining\.co\.uk$ [NC]
RewriteRule ^(.*)$ http://www.basistraining.co.uk/$1 [R=301,L]
--

I also attached a screenshot for your comparision.

This rule works fine in my test env.

cheers,
Hades666
 
configuration
configuration
 
Random Solutions  
 
programming4us programming4us