Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

New canonical header tags module doesn't support multi language sites


bruyndoncx

Recommended Posts

I created a bug report for this issue, but I'd like some help to get it fixed. I'm sure someone here on the forum knows how to do it ;)

 

Basically the problem is that the new canonical header tags module introduced in 2.3x does not support multi-langague sites as it generates the same canonical url for all the different languages.

 

The canonical tag should include a parameter for the language as pergoogle guidelines

http://googlewebmastercentral.blogspot.be/2010/03/working-with-multilingual-websites.html

 

to add a global $language declaration, and adding this as a parameter is not that hard, but the better solution would be to have a fake directory for each language and do some mod_rewrite magic on it to go from

/en/blabla

to

blabla?language=en

 

and this is where I got stuck :(

 

So what is the proper rewrite syntax to go from

http://www.mydomain.com/catalog/en/blabla.php to blabla.php?language=en with all remaining parameters added

 

and also the syntax to work with the seo urls like blabla-p-1234.html

 

or am I asking for too much here ?

KEEP CALM AND CARRY ON

I do not use the responsive bootstrap version since i coded my responsive version earlier, but i have bought every 28d of code package to support burts effort and keep this forum alive (albeit more like on life support).

So if you are still here ? What are you waiting for ?!

 

Find the most frequent unique errors to fix:

grep "PHP" php_error_log.txt | sed "s/^.* PHP/PHP/g" |grep "line" |sort | uniq -c | sort -r > counterrors.txt

Link to comment
Share on other sites

@@bruyndoncx

 

Ultimate seo Urls 5 PRO multi language mode works perfectly well with 2.3.3 and with the canonical elements.

 

Example of product listings canonical: -

 

Url: http://www.mysite.com/oscommerce/2.3.3/dvd-movies-action-c-3_10.html?page=2&sort=2a

 

English canonical: -

 

rel="http://www.mysite.com/oscommerce/2.3.3/dvd-movies-action-c-3_10.html"

 

 

Example "other language" canonical, in this case danish: -

 

rel="http://www.mysite.com/oscommerce/2.3.3/da/dvd-movies-action-c-3_10.html"

Link to comment
Share on other sites

OK, thanks - I'll have a look at that.

 

Trying to do it on my own is still not working 100% after 2.5hrs plus a supported contribution always beats custom coding :D

KEEP CALM AND CARRY ON

I do not use the responsive bootstrap version since i coded my responsive version earlier, but i have bought every 28d of code package to support burts effort and keep this forum alive (albeit more like on life support).

So if you are still here ? What are you waiting for ?!

 

Find the most frequent unique errors to fix:

grep "PHP" php_error_log.txt | sed "s/^.* PHP/PHP/g" |grep "line" |sort | uniq -c | sort -r > counterrors.txt

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...