View Full Version : Redirecting mysite.com to www.mysite.com
jchris
01-06-2008, 04:17 PM
A few features of our site don't work correctly if a visitor enters the site without the "www". How do I rediret all visitor who do not enter the www to www.mysite.com?
Thanks!
kruemel
01-07-2008, 01:05 PM
Just try search: redirect
And you will find -> http://www.bluehostforum.com/showthread.php?t=11201
All you need is in there. :)
Extract of this post:
Edit .htaccess file:
RewriteEngine on
# force url to www.foobar.org when its foobar.org
rewritecond %{http_host} ^foobar\.org [nc]
rewriterule ^(.*)$ http://www.foobar.org/$1 [r=301,nc]
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.