I was asked today how it is possible to omit the 'www.' when typing in a URL and still get to a web site.
eg. 'domain.co.uk', as opposed to 'www.domain.co.uk'
I was embarrased to say that I couldn't give definitive answers.
I know that this is possible if a server can use subdomains, I also think the flavour of server is an issue.
Can somebody give me a more comprehensive 'list' of how it is possible to do this - is it down purely to server/domain configuration?
Many thanks
Hopefully that will suffice to answer your question.
Would either of the methods you describe have an adverse effect on search engine positions - particularly if the www.site.co.uk was achieving good rankings before anything was changed on the server?
Would this also require a dedicated server - the site I was asked about is on standard, shared hosting with an ISP/host
If you are on Apache, here's what you would want to put in your .htaccess file:
RewriteEngine On
RewriteCond %{HTTP_HOST} ^domain.tld
RewriteRule ^(.*)$ [domain.tld...] [R=301,L]
Several years back I made the decision to set my server to force everyone to the shorter http://example.com version of my site. My thinking at the time was that it's 4 characters less and www. is unnecessary. I standardized this on all printed materials and online linking. There are valid arguments for keeping the www. as well. You just have to pick the one you want, and stick with it. ;)
On a Windows server you can re-write the URLs as well. Someone posted this helpful link in another thread: URL Rewriting in ASP.NET [msdn.microsoft.com]
What I have had trouble with is that most of the domain ranking services check backlinks and listings by using the 'www.' versions, which makes my sites look very unpopular. For example, in Google if you look for one of my sites with 'site:www.sitename.com' it shows 155 listings. If you look for 'site:sitename.com' it shows 125,000 listings.
It's not a real problem as far as day to day business is concerned, it's just a minor annoyance. If I ever wanted to sell these sites though, I could see it effecting the perceived value of the sites.
Good question is if I feel this may have been a possible reason for the banning, how should I contact Yahoo and Google for inclusion? BTW Yahoo does not appear to have any contact page or email.