mindboggle
04-25-2004, 01:32 PM
How do you have mydomain.com automatically go to www.mydomain.com (CNN.com does this)?
Thanks
EDIT: I'm using Windows 2000 Server
Thanks
EDIT: I'm using Windows 2000 Server
![]() | View Full Version : Redirecting domain to www mindboggle 04-25-2004, 01:32 PM How do you have mydomain.com automatically go to www.mydomain.com (CNN.com does this)? Thanks EDIT: I'm using Windows 2000 Server jroy 04-25-2004, 02:30 PM it should for all domains, but it doesnt for subdomains peilo 04-25-2004, 02:44 PM check your dns if it isnt taking you to the site, otherwise when you yype in the www. of course should take you to the site you requested mindboggle 04-25-2004, 03:16 PM mydomain.com works fine. I want to know how I can have it automatically point to www.mydomain.com so that links will include the www (I'm not typing out the entire URL - just the paths). jroy 04-25-2004, 03:17 PM they both go to the same site mindboggle 04-25-2004, 03:22 PM I know. I'm just curious as to how to make it so that anyone going to mydomain.com will automatically load www.mydomain.com. I would rather have the links on the site (I just used paths) point to www.mydomain.com instead of mydomain.com. jroy 04-25-2004, 03:33 PM why does it matter?? lol its all the same thing mindboggle 04-25-2004, 04:20 PM Heh, I realize that, but CNN and Google do it so I thought I should do the same (who knows, if they do it then it might help in some way). jroy 04-25-2004, 04:28 PM nope it doesnt matter at all, you could use direct links though like instead of page.php you could make the link www.mydomain.com/page.php tanfwc 04-25-2004, 10:34 PM no one got idea on how to do that? quite alot of web site i visit does that...someone pls comment on this... Apolo 04-25-2004, 11:48 PM That's is done by your web hosting company. It's a matter of DNS zone settings: An A record pointing to www.domain.com. Some other companies use a CNAME record pointing to the same, but this configuration is not recommended. That's all. ;) tiggee 04-25-2004, 11:55 PM This can be done 3 different ways: 1) Have a script set up to redirect the traffic to 'www'. This is basically what would happen if you set up a redirection record with a third party. 2) There is a index.html (or index.htm) that just has a small javascript redirect to the 'www'. 3) Handled by the web server. This is of course configured differently depending on your web server. But they can all (I should say "most") handle a simple URL rewrite. zoli 04-26-2004, 02:55 AM On apache: <VirtualHost 1.1.1.1:80> ServerName yourdomain.com RedirectPermanent / http://www.yourdomain.com/ </VirtualHost> tanfwc 04-26-2004, 04:38 AM Originally posted by zoli On apache: <VirtualHost 1.1.1.1:80> ServerName yourdomain.com RedirectPermanent / http://www.yourdomain.com/ </VirtualHost> no other way than this? zoli 04-26-2004, 06:43 AM Hmm... this is the one I know. brianlim 04-26-2004, 06:53 AM I don't really get what you meant? Isn't domain.com same as www.domain.com?:confused: tanfwc 04-26-2004, 07:00 AM Originally posted by brianlim I don't really get what you meant? Isn't domain.com same as www.domain.com?:confused: www look nicer...keke... bullman 04-26-2004, 01:53 PM I think it is but try this and tell me what you think Type this in your browser realmadrid.com I get an 502 error But type this www.realmadrid.com and it will take you to the site. This is the only site i've seen that works like this I have always wondered why jroy 04-26-2004, 03:57 PM depends on the server i get no error on realmadrid.com tanfwc 04-26-2004, 09:41 PM Originally posted by bullman I think it is but try this and tell me what you think Type this in your browser realmadrid.com I get an 502 error But type this www.realmadrid.com and it will take you to the site. This is the only site i've seen that works like this I have always wondered why the reason is that there is no "realmadrid.com" in the zone file to point to the server... |