I have bought a domain named cars4news.com I have setup a WordPress blog (set to WordPress address (URL): http://cars4news.com ). In google sitemaps I have registered my site to be specifically http://mydomain.com I don't have any .httacces on my root folder (server at Dreamhost). I have another domain hosted here and works just fine. Yet when I write in any browser http://cars4news.com it redirects to http://www.cars4news.com What am I doing wrong?
1. if you dont have the www redirect in your .htaccess - then your host may have it by default 2. Google allows you to select for your domain with or without www to accumulate all links into one site - somewhere in your G webmaster account you find that option if you want to change to www.
Read my post first. It says that there is no redirect in your .htaccess. And I have another domain hosted here and works just fine. AND In google sitemaps I have registered my site to be specifically http://mydomain.com
When you register new domain maybe you forget at this section. How do you like the www in your URL? Both http://www.domain.com/ and http://domain.com/ work. Add "www." if somebody goes to http://domain.com/ Remove "www." if somebody goes to http://www.domain.com/ Maybe Help
i fully read and understood your post first! may be you failed to understand the difference between "your .htaccess" and the server config file a host-admin may use a host NEVER uses .htaccess for redirect but default config files your host can put a www redirect by in HIS config - his config is NOT your .htaccess but the (apache) default-server-configuration file. it is quiet apparent that your host USES a redirect in his config - hence you either live with the full www. domain or redirect the redirect back to whatever you love to have. your host certainly has a good reason for the www and unless you have a root server there may be little success in asking your host to change that machines server config as it would destroy all other shared hosting accounts default redirect to www. i always have the www redirect and see absolutely no benefits without www. I also have properly configured my Google account accordingly. the fact that another domain works without www may mean nothing at all unless you have BOTH domains on SAME MACHINE = same IP on your host each machine may have its own DIFFERENT apache default config and even be on different datacenters within the same host