Hello Naveen, Welcome to WebmasterWorld.
You can help the search engines a little bit with a code like
<meta http-equiv="Content-Language" content="?">
where you put the language code on the place of the question mark. See also Meta "Content Language" Tag Usage. [webmasterworld.com]
For some searches/searchengines/directories the ccTLD (Country Code Top Level Domain; like '.se' for Sweden) of a domain is also important.
For example on www.google.de the user can choose to restict the search reselts to German pages only. Google will then just show pages from domains with '.de' or an IP address known to be in Germany.
Is that enough I mean the language tag <html lang="de">. My site uses the cookie to detect the language selected and all page URLs are the same for any language.
Once again thanks a lot.
|My site uses the cookie to detect the language selected and all page URLs are the same for any language. |
That won't work for search engines. They will only be able to crawl the default language, meaning that no potential visitor can find the site through a SE for any other language. Search engines will need a unique URL for all these seven languages. And most likely you will need these unique URLs also for (deep) links to your pages.
Naveen, you have to use *different* URLs for all language versions. SEs can't handle cookies. Common method is to put every language into a separate folder, e.g.:
etc. After all, every language constitutes an independent web site, so this method is appropriate.
You can also use HTTP_ACCEPT_LANGUAGE header to redirect new users to the language version they prefere.
>Would it be enough for search engine to recognize the content language by content
Takagi nailed it on the domain issue - use ccTLD's if you have that option.
Marek also gave a good answer. Make sure you have unique language content on each page (eg. dont mix them). Make sure your URL's are static and support the page with the meta language tag.
Then you should be ok.
We've had quite a few discussions about this topic:
Translations will get you top rankings in major engines [webmasterworld.com]
Is good SEO practise enough in Europe? [webmasterworld.com]
European Search Engine Beginner [webmasterworld.com]
Do a site search as well, you'll find plenty of good threads on the subject :)
Thanks Takagi and Marek
Now i got the point except one thing
File name is same for all languages, lets say there is a file xxxxx.htm how can i put this file in folders
because the same file serve the different language (dynamically through JSP and uses the cookie for the preferred language)?
Do i need to create differnt JSP for different languages and put them in the respective language folders?
The following 3 URLs are different for a browser and a search engine:
Filenames are just a part of the total URL. So yes, you can keep the filename the same, if you put these files in different folders.
Naveen, you can either put your JSP files in the respective language folders, or you can use one JSP script with parameters and rewrite URLs via mod_rewrite or something like that. For instance the real URL may read
and you rewrite it to: