View Full Version : how to redirect domain.com to www.domain.com?
alexpr07
Jun 7th 2009, 6:03 pm
The question is in the title, how do I redirect mydomain.com to www.mydomain.com?
I have VPS with Windows Server 2003 Standard 64-bit and Plesk Control Panel.
TechnoMANYAK
Jun 7th 2009, 6:13 pm
you can use this .htaccess code
Options +FollowSymlinks
RewriteEngine on
rewritecond %{http_host} ^domain.com [nc]
rewriterule ^(.*)$ http://www.domain.com/$1 [r=301,nc]
caratking
Jun 7th 2009, 6:21 pm
I don't think the default windows platform has .htaccess, and thus no redirects that way.
You can check out iaspi_rewrite (http://www.helicontech.com/isapi_rewrite/) though, I use it on windows systems and it works very well.
Reynolds
Jun 7th 2009, 8:54 pm
simply try the URl forwarding . I hope it will work .
gary4gar
Jun 7th 2009, 9:36 pm
See this for II6:
http://blogs.msdn.com/wenlong/archive/2007/09/18/how-to-redirect-a-url-in-iis6-iis7-and-in-asp-net.aspx
mentos
Jun 7th 2009, 10:02 pm
how to redirect domain.com to www.domain.com?
Why need to do the extra step?
Its browser ability to auto redirect whenever user key in domain.com to www.domain.com
vBulletin® v3.8.4, Copyright ©2000-2009, Jelsoft Enterprises Ltd.