Many people are coming to my site, leaving off the 'www' part of the URL. To work in appliance with a script that I have, I need them to come through the www.mysite.com domain. So, I need a way for the page to redirect to www.mysite.com when they type in just mysite.com.
Everything I try creates a loop and crashes the browser. That is:
<meta-http-equiv="refresh" content="0; url=http://www.mysite.com/"> or PHP, header("Location: [mysite.com")......]
You could use a server-side redirect. Try a WebmasterWorld site search for "301 redirect" and you'll finds tons of info. You'll have to sort the threads out by server type to get the right method for your server.