Jump to content

Duplicate content


Recommended Posts

Hi guys,

 

I hope someone here can help. I have a prestashop site and was wondering about the double content. I have now found a product on google, with different url's.

 

As an example i have the following:

 

www.mysite.com/this-product.html

 

www.mysite.com/en/this-product.html

 

www.mysite.com/de/this-product.html

 

I really want the products indexed with the language, so I am planning to use either robots.txt to remove all products in teh database, however I was just wondering if I can make a disallow a bit more clever than that ?!

 

E.g. I want to disallow all urls that doesnt contain the /en/ or /de/ part and I want to allow url if they actually have the /en/ or /de/

 

As a suggestion would this work ?

 

Disallow : /*

Allow : /en/*

Allow: /de/*

 

Has anyone any experience with that ? Or any warnings.

 

All input is sincerely appreciated.

 

Thanks in advance.

 

 

Link to comment
Share on other sites

Hi :)

 

Well actually the default language, in each prestashop installation I guess, will mean that the url without the language snip, will link to a page that can be found with the actual language.

 

E.g. the default language is English, so the page www.thissite.com will be in english as well as www.thissite.com/en/

 

So at least one of languages will be identical.

 

I read at google that they do not recommend to fix this by robots.txt

 

It would be easy though. I tested these and the below would really work:

 

 

Disallow: /*.html
Allow: /en/*.html
 
That will disallow all product pages that ends with a .html - which they will have with the url rewrite that comes with prestashop, unless they have the language snip.
 
I just wonder why google do not recommend this :).
 
Anyway, maybe there would be a way to do the same in the .htaccess file ?? WOuld you know ?
 
 Thanks :)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...