QUOTE (wy125 @ Jun 5 2009, 06:16 PM)

I didn't really, I just hacked it. The problem I was having was that in firefox www.XXX.com and XXX.com spawn two different sessions and it was causing some problems for us. So what I did was to check if the browser's url said www or not. If it didn't, I redirected to www.
I hope that this snippet helps you and others.
htaccess rewrite. somedomain.com is rewritten to https//www.somedomain.com
Hope this helps many of you.
Peace
CODE
RewriteEngine On
RewriteCond %{HTTPS} !=on
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$
https://www.%{HTTP_HOST}/$1 [R=301,L]