Redirecting http://mydomian.com to http://www.mydomain.com ?

If you are on a windows server serving static pages, the only way to do it that I found was to do the following: (Note: you will have to re-upload the entire website)

1. Delete the www. server alias.
2. Create a www subdomain.
3. Permanently redirect yourdomain.com to www.yourdomain.com in the control panel.
4. upload your pages, or otherwise transfer your pages, to www.yourdomain.com.
 
A-Muse said:
If you are on a windows server serving static pages, the only way to do it that I found was to do the following: (Note: you will have to re-upload the entire website)

1. Delete the www. server alias.
2. Create a www subdomain.
3. Permanently redirect yourdomain.com to www.yourdomain.com in the control panel.
4. upload your pages, or otherwise transfer your pages, to www.yourdomain.com.
Thanks, that is what support said as well but as you say it requires redoing the entire site as you can't use the current folder.
 
schooner said:
Thanks, that is what support said as well but as you say it requires redoing the entire site as you can't use the current folder.

It's not a good idea to do that as you will will than be able to access your website at www.www.domain.com

You can use redirects on all your pages, with PHP for example
 
Creating the redirect in the control panel as suggested, it will give a 302(temporary) redirect.

A 301(permanent) is the recommended and proper way and if it is done through ASP, PHP, CFM or other then that would be the best option.

I still don't understand why many control panels return a 302 rather than a 301.

Good luck.
 
Back
Top