I have a site that has 2 languages: English and Swedish.
What I want is, if someone Googles the site in Sweden, it should show the Swedish results. That is, I want Google in Sweden (google.se) to crawl the Swedish version of the site. For any other place, I would want the English version to be crawled.
I read the following:
http://googlewebmastercentral.blogspot.se/2010/03/working-with-multilingual-websites.html
It says I should have 2 separate pages for the website. Is there a way such that I don't need to change anything in the url?
I mean simply, if anyone on google.se searches for example.com, it should show the Swedish result, anywhere else, English.
Here's Google's official documentation on multi-lingual sites. Which has substantially the same information as the blogspot entry you link to. They write:
and then give advice about what they consider best UX practices.
Given that, if you want an optimal Google experience, you should follow their guidelines and have language-specific urls. Google searches are certainly language-sensitive, and should return the appropriate version of the site when people search for it.
If you're set on having a single URL, how are you intending to set the language? Based on language headers? Javascript detection? Cookies? Those are all potentially problematic for SEO, and since Google doesn't think they're good methods, they don't offer advice on how to optimize SEO using them.
Your best bet is probably to go with Google's advice and have multiple URLs.
Here is my full answer about how you should structure your URLs for multilingual sites.
There are many acceptable ways to structure your site for both SEO and internationalization. Each have advantages and disadvantages.
Top Level Domains
Buy the same domain name at multiple top level country domains like
example.com
,example.es
andexample.de
.Advantages
example.co.uk
andexample.com.au
targeted at audiences in different countries. The sites may have duplicate content with slight spelling differences and still rank well. In fact, multiple well localized sites in the same language may rank better than a single site in that language.Disadvantages
es
, search engines may assume that the site is only appropriate for users from Spain, not for all Spanish speakers.Sub-domains
Buy a single domain, and use sub-domains such as
en.example.com
, andes.example.com
Advantages
Disadvantages
Sub-directories
Buy a single domain, and use sub-directories such as
example.com/en/
, andexample.com/es/
Advantages and Disadvantages
Techniques that are NOT recommended
index_en.html
andindex_de.html
. This technique is not fully supported by Google. For example, there is no way to set targeting in webmaster tools.lang=en
. It is not recommended for the same reason that different file names are not recommended.Accept-Language
header.Accept-Language
header and crawl from different geographic locations. However, Google still recommends that you have separate URLs for content in different languages.Accept-Language
header to suggest that users might prefer a different version of the site by displaying a message when the site they are visiting does not match theAccept-Language
header.On-page Markup
When supporting multiple languages, you should clearly mark up with language meta-data.
Use the lang attribute in the
html
tag:Use rel alternate links to the same page in other languages as suggested by Google:
Alternately, this information can be put into sitemap files.
Tell Google About Your Site
You should add each language (or locale) of your site to Google Webmaster Tools. This can be done for top level domains, for sub- domains, or for sub-directories.
If your site is targeted by country, you should use webmaster tools to set the site targeting. Navigate to "Configuration" -> "Settings" -> "Geographic target" and choose to target the correct country from the drop down list.
UPDATE IN 2015:
Google now supports Crawling and indexing of locale-adaptive pages!
Cited from the linked post, they support:
...
...
Although they still recommend using separate URLs.