PDA

View Full Version : w. ww. www. urls working


allthingsgifts
17th May 2009, 16:49
Hi
When i type in w.domain.com and ww.domain.com and www.domain.com (http://www.domain.com) they all work for my site, obviously the 'domain' is just an example of what my site is. Anyway i'm assuming something is wrong as when i tried this for other sites it doesn't work. I have contacted the hosting company as we recently moved hosts but not sure if it's something to do with them or not. Had problems with sitemaps and am still waiting for google to scan the site to re-index pages and update from the error message which is currently appearing in search results at the moment. Am i worrying over nothing?
Thanks
Lianne

Subbynet
17th May 2009, 16:55
They have just pointed all domains to your main page in case someone mistypes the URL... I personally wouldn't worry about it, and it shouldn't cause any errors in the Search Engines that I know of...

openmind
17th May 2009, 18:51
As Martin said, nothing to be concerned about. They have a wildcard DNS A record setup to resolve to your site so blahdeblah.domain.com would work as well...

ServWise
17th May 2009, 19:13
Yeah as mentioned, likely just a wildcard dns entry, you might want to 301 redirect (rather than alias) all wildcard urls as well as the root domain (http://domain.com) to the www. (http://www.domain.com) version just for consistency and avoiding any possible negatives in SEO.

hostedweb
17th May 2009, 21:11
If you would like the search engines to only see one version (which is best practice) you could use something like

RewriteEngine on
RewriteCond %{HTTP_HOST} ^domain\.co.uk [NC]
RewriteRule (.*) http://www.domain.co.uk/$1 [L,R=301]

In a .htaccess file which will redirect via 301 and tell google, ask etc the proper address.

allthingsgifts
17th May 2009, 21:34
Thanks to everyone who replied, i've just changed hosts so forgot to upload the .htaccess file so it was the same before i moved.