FRIHOST FORUMS SEARCH FAQ TOS BLOGS COMPETITIONS
You are invited to Log in or Register a free Frihost Account!


Language settings and duplicate content





Peterssidan
Imagine a site with user-generated content i.e. a blog or forum. It is possible to choose the language to be used for all content that is not user-generated. The different languages are located at different URLs. All content that is relevant to the search engines (the user-generated content) will be exactly the same for all languages so we do have duplicate content. I was wondering how to best handle this.
sonam
I am solved this with session. The language is in separate folders (except index page of main language what is in root folder - public_html not in subfolder) and each language page have trigger what write lang session. The user pages are in separate folder and back links are building with this session. For example:
http://mysite/en/index.php (index page in English language)
http://mysite/de/index.php (index page in German language)

If you are coming from English folder then session is $_SESSION['lang'] = 'en'. The same is for German language $_SESSION['lang'] = 'de'.

On user page you need to build links automatically with session:
Code:
$lang = $_SESSION['lang'];
<a href="http://mysite/$lang/index.php">HOME</a>


In that case you will have only one user content and any number of languages.

Sonam
Related topics
Google and Domains: help
V Bulletin dkmanlar
Very large problem[SOLVED]
small problem...hope you can help
Flash Site or No?!
Duplicate content and home page
New Problem with Viewing letters not i and s
Virginia Woolf, anyone?
Rather strange pagerank thing (not really a problem)
Firefox users only.Speed up firefox in 30 seconds
i want to create a new language for PHPNUKE
Can you write it in your language?
google busts the "Duplicate Content" myth!!
SEO your Joomla website
Reply to topic    Frihost Forum Index -> Webmaster and Internet -> SEO and Search Engines

FRIHOST HOME | FAQ | TOS | ABOUT US | CONTACT US | SITE MAP
© 2005-2011 Frihost, forums powered by phpBB.