Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Duplicate content with language parameters


luckyno

Recommended Posts

Posted

As a swiss merchant, I need to have 3 languages in my shop, but now I see a big problem with google...

 

As an example: allprods.php?language=it and allprods.php duplicate pages for google are the same page... with same content... but google sees them as 2 different urls pointing to duplicate pages.

 

How to avoid it?

I love oscommerce and OS software! I'm not a programmer, I'm only a learning boy and a translator :) I love full contribution packages!

Posted

Place some additional content depending on the get url.

 

I do not see it creating lots of harm if its just a page or so in the whole sote.

 

Satish

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Posted

or place a rule in robots.txt so google will not spider one of the urls.

 

Satish

Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site.

 

Check My About US For who am I and what My company does.

Posted
Place some additional content depending on the get url.

 

I do not see it creating lots of harm if its just a page or so in the whole sote.

 

Satish

 

it is the same for the whole site... index.php, ecc ecc... products pages too. Isn't it possibile to do something with .htaccess file?

I love oscommerce and OS software! I'm not a programmer, I'm only a learning boy and a translator :) I love full contribution packages!

Posted

this is something I found interesting...

 

http://www.google.com/support/webmasters/b...&topic=8846

 

but will this trick stop google indexing the pages for the other 2 languages? I use Ultimate seo urls.

 

I've urls like: tastatur-p-1.html keyboard-p-1.html tastiera-p-1.html for the same product, but with completely different descriptions product names.... ecc ecc..

 

The only thing I want is to stop google indexing urls with language parameters... not the translated urls by ultimate seo urls.

 

this is a second trick I found... is it good? :

 

in htaccess:

 

#
# Skip the next two rewriterules if NOT a spider
RewriteCond %{HTTP_USER_AGENT} !(msnbot|slurp|googlebot) [NC]
RewriteRule .* - [s=2]
#
# case: leading and trailing parameters
RewriteCond %{QUERY_STRING} ^(.+)&language=[0-9a-z]+&(.+)$ [NC]
RewriteRule (.*) $1?%1&%2 [R=301,L]
#
# case: leading-only, trailing-only or no additional parameters
RewriteCond %{QUERY_STRING} ^(.+)&language=[0-9a-z]+$|^language=[0-9a-z]+&?(.*)$ [NC]
RewriteRule (.*) $1?%1 [R=301,L]

I love oscommerce and OS software! I'm not a programmer, I'm only a learning boy and a translator :) I love full contribution packages!

Posted

I found this interesting too:

 

If you wanted to do it with the application_top.php you do:

if( isset($HTTP_GET_VARS['language']) ) {
tep_redirect(tep_href_link(basename($PHP_SELF), tep_get_all_get_params('language')));
 }

 

Place the code after the osc loads the general.php, html_output.php.

 

Depending on the type of the redirect you want to do you could invoke the necessary header in the tep_redirect function.

 

but I don't understand what he's saying about: you could invoke the necessary header in the tep_redirect function.

I love oscommerce and OS software! I'm not a programmer, I'm only a learning boy and a translator :) I love full contribution packages!

Posted
I found this interesting too:

but I don't understand what he's saying about: you could invoke the necessary header in the tep_redirect function.

 

The correct SEO method, I believe, would be to code the site so that <a href had rel="nofollow" where you don't want the links/pages to be indexed.

Posted
The correct SEO method, I believe, would be to code the site so that <a href had rel="nofollow" where you don't want the links/pages to be indexed.

 

what I was only asking is: is it possible to remove, with a little modification of your url validation for seo urls and a 301 redirect, the language paramter from urls?

 

Yes? no? If yes, how?

 

Only this.

 

Thank you.

I love oscommerce and OS software! I'm not a programmer, I'm only a learning boy and a translator :) I love full contribution packages!

Posted
what I was only asking is: is it possible to remove, with a little modification of your url validation for seo urls and a 301 redirect, the language paramter from urls?

 

Yes? no? If yes, how?

 

Only this.

 

Thank you.

 

this will be probably the right code for application_top:

 

if ( $spider_flag == true ){

if( isset($HTTP_GET_VARS['language']) ) {

tep_redirect(tep_href_link(basename($PHP_SELF), tep_get_all_get_params('language')));

header("HTTP/1.0 301 Moved Permanently");

header("Location: $location"); // redirect...bye bye

}

}

I love oscommerce and OS software! I'm not a programmer, I'm only a learning boy and a translator :) I love full contribution packages!

Posted
this will be probably the right code for application_top:

 

if ( $spider_flag == true ){

if( isset($HTTP_GET_VARS['language']) ) {

tep_redirect(tep_href_link(basename($PHP_SELF), tep_get_all_get_params('language')));

header("HTTP/1.0 301 Moved Permanently");

header("Location: $location"); // redirect...bye bye

}

}

 

Errm

 

so you have an SEO link with languages on the querystring, and you are going to 301 redirect it to exactly the same SEO link with languages in the querystring.

 

Makes no sense.

 

and .. if you remove the language param from the link you will just kill the language functionality.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...