# Setup RewriteEngine on # Redirect non-www to www RewriteCond %{HTTP_HOST} ^example\.com RewriteRule ^/(.*)$ http://www.example.com/$1 [R=301,L]
Flush your browser cache after making any changes to the code.
Jim
wfernley
7:26 pm on Jan 11, 2006 (gmt 0)
Thanks again Jim,
For some reason this aint workin.
I tried also clearing my cache.
If you want I can sticky you my rewrites and you can take a look. Let me know if thats possible.
Thanks again!
jdMorgan
7:56 pm on Jan 11, 2006 (gmt 0)
You'll have to be sure that the code is invoked for requests to the non-www domain; That is, the code cannot be inside any containers specific to the www domain or it won't ever be invoked for non-www requests.