newguy
Mar 21 2005, 02:09 PM
Hello all,
I am having a major issue because the ecommerce part of my site requires cookies to function properly. When I set a cookie for www.mysite.com, it only works when using www But it was suggested to try and set the cookie .mysite.com, but this did not work for me correctly either.
How can i setup my site that whenever someone goes to mysite.com they instead go to www.mysite.com?
Thanks
cprompt
Mar 21 2005, 02:40 PM
Depending on your OS, there are several ways to do it. One easy option is to create two websites, one for www.site.com and one for site.com. In the site.com website, set the default page (index.htm or default.htm) as:
<html>
<head>
<META HTTP-EQUIV=Refresh CONTENT="0;URL=http://www.site.com">
</head>
</html>
So whenever someone hits site.com, they are redirected to www.site.com.