ExpressionEngine CMS
Open, Free, Amazing

Thread

This is an archived forum and the content is probably no longer relevant, but is provided here for posterity.

The active forums are here.

SEO Friendly Multilingual Expression Engine URLs

February 18, 2011 8:55am

Subscribe [5]
  • #1 / Feb 18, 2011 8:55am

    mprzybyla

    2 posts

    Hi, I’ve read up quite a bit on various ways of implementing multilingual sites in EE2, and I’ve more or less got my site up and running using a combination of this method and Apache mod_rewrite.

    However, SEO is very important for the site I am building, so I need to make sure a couple of things happen:

    1. all URLs are in both Spanish and English, depending on which language you are currently in
    2. each page has only 1 canonical URL per language to avoid duplicate content issues

    This has proved to be a little tricky on a couple of fronts and I just wanted to get some input to see if anyone has any tips.

    For example, with categories, my current url structure works like this:
    http://www.example.com/places/categories/category/restaurants

    I need this url to be the same, but in Spanish, like so:
    http://www.example.com/lugares/categorias/categoria/restaurantes

    What is the best way to make all these url segments multilingual?  Should I duplicate the template_group/template set or should I use mod_rewrite to achieve the first part of the URL?

    And what about categories? I can use a combination of category_id’s and Freebie to achieve multilingual category names.  For example, I can get the following to point to the same place:
    http://www.example.com/lugares/categorias/C2/restaurantes
    http://www.example.com/places/categories/C2/restaurants

    That’s ok.  However, Freebie will just ignore anything after the category_id (C2) so it’s tough to get a canonical url out of this, since I can access the same url at:
    http://www.example.com/places/categories/C2/any/words/here

    I could rewrite all the categories with mod_rewrite but this would be a huge hassle and not very practical.

    I wonder how everyone else is solving these issues. This is my first site with EE so I don’t purport to be any sort of expert.

    Cheers,

    Moved to CodeShare Corner by Moderator

  • #2 / Feb 18, 2011 9:21am

    Sue Crocker

    26054 posts

    In this case, I’m going to move this thread to the CodeShare Corner for additional community support. I’ve never bothered with having different url titles based on language. But other member have .. and may have other suggestions.

  • #3 / May 19, 2011 10:40pm

    musdy

    1 posts

    so any luck with this problem?

  • #4 / Nov 02, 2011 3:51am

    Sreenu

    1 posts

    Hi,

    I’m also facing the same problem, trying to get different URLs based on the language.

    any solution for this??

  • #5 / Nov 04, 2011 12:01pm

    Darren Miller

    103 posts

    I could rewrite all the categories with mod_rewrite but this would be a huge hassle and not very practical

    Unless your URL structure is constantly changing, I actually suspect you’ll find this route the least hassle.

    Your alternatives are likely to be duplicated template groups or conditional code in config files/extensions. Which is much harder to maintain and probably slower performing than mod_rewrite

.(JavaScript must be enabled to view this email address)

ExpressionEngine News!

#eecms, #events, #releases