Jump to content

hreflang multiboutiques


Recommended Posts

Bonjour,

 

J'ai un presta 1.5.5.0 en multiboutiques avec une version fr et es.

Je souhaite ajouter la balise hreflang sur chaque page en récupérant l'url de la page active sur les 2 versions du type :

<link rel="alternate" hreflang="es" href="https://www.spanish.es/hola.html"/>
<link rel="alternate" hreflang="fr" href="https://www.french.com/bonjour.html"/>
Je ne vois pas comment faire :(
Un petit coup de main ?
Merci d'avance.
 
Link to comment
Share on other sites

  • 3 weeks later...

Bonjour,

 

vous avez ce module qui gère le hreflang en multi boutique multi langue et surtout remplace le block language d'origine afin de proposer la bonne url dans les autre langues en changeant de domaine.

 

fr : http://www.prestatoolbox.fr/multi-boutique-prestashop/317-bloc-multi-langues-multi-domaines.html

en : http://www.prestatoolbox.com/multi-store-prestashop/317-block-multi-languages-multi-domains.html

Link to comment
Share on other sites

  • 1 month later...

Hello,

 

It´s my first post here. I hope you can help me.

 

Webmaster tools give some errors in hreflang SEO url´s. My site has 4 languages (english, spanish, italian and Germany).

 

I translated URLs SEO (contact us, best sales, sitemap...). Now when I open view-source for example view-source:https://www.mydomain.com/es/contacte-con-nosotros appear:

 

<!- canonical y hreflang ->
<link rel="canonical" href="http://www.mydomain.com/es/contacte-con-nosotros" />
<link rel="alternate" hreflang="http://www.mydomain.com/en/contacte-con-nosotros" />
<link rel="alternate" hreflang="http://www.mydomain.com/es/contacte-con-nosotros" />
<link rel="alternate" hreflang="http://www.mydomain.com/it/contacte-con-nosotros" />
<link rel="alternate" hreflang="http://www.mydomain.com/de/contacte-con-nosotros" />
<!- /canonical y hreflang ->
 
and it should be:
 
<!- canonical y hreflang ->
<link rel="canonical" href="http://www.mydomain.com/es/contacte-con-nosotros" />
<link rel="alternate" hreflang="http://www.mydomain.com/en/contact-us" />
<link rel="alternate" hreflang="http://www.mydomain.com/es/contacte-con-nosotros" />
<link rel="alternate" hreflang="http://www.mydomain.com/it/contattaci" />
<link rel="alternate" hreflang="http://www.mydomain.com/de/kontakt" />
<!- /canonical y hreflang ->
 
How can I solve it?
 
I hope your help!
Link to comment
Share on other sites

@jggustavo07

 

Let me clarify why you need a module. It could be yours but nothing but a module can do the job.

Each different type of page have different friendly-url scenario, product use link_rewrite from table product_lang, category link_rewrite from category_lang, other page data from mata_lang. The correct link should call a different method to generate the proper url $link->getProductLink() $link->getCategoryLink() ...

 

I hope now you understatnd why a module is compulsary

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...