Help - Search - Members - Calendar
Full Version: www and no www cookie problem - forward no www to www
The Planet Forums > System Administration > DNS Hosting
newguy
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
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.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2009 Invision Power Services, Inc.