Support » Networking WordPress » Multisite multilingue redirection after migration

Viewing 5 replies - 1 through 5 (of 5 total)
  • Moderator Ipstenu (Mika Epstein)

    (@ipstenu)

    🏳️‍🌈 Halfelf Rogue & Plugin Review Team Rep

    Hm. That’s tricky. I think you may be able to do this via .htaccess.

    RewriteRule ^/category/(.+)\?lang=fr$ /fr/$1/ [L,R]
    RewriteRule ^/category/(.+)\?lang=es$ /es/$1/ [L,R]
    RewriteRule ^/category/(.*)$ /en/$1/ [L,R]

    As long as you keep the /en/ one at the end, that should sort through the other languages, and kick the last one to English.

    JpFayolle

    (@jpfayolle)

    Thanks Mika,

    I could not make it work (maybe I did not put it at the right place in the htaccess file) but I did not insist too much as, testing it, I discovered that too much of my posts’ names have changed, so I will definitively need a redirection plugin.

    Thanks again,
    Regards,
    Jean-Pierre

    JpFayolle

    (@jpfayolle)

    I have now moved to the multisite installation (see http://www.qualilogy.com, see http://www.qualilogy.com/fr/, ../en/, ../es/) but I cannot get any redirection working.

    I have been doing the following tests, unsuccessfully:

    In .htaccess:
    Redirect 301 http://qualilogy.com/application-quality/the-3-costs/?lang=es http://qualilogy.com/es/los-3-costes

    Redirect 301 /application-quality/the-3-costs/?lang=es http://qualilogy.com/es/los-3-costes

    Redirect 301 Redirect 301 /?lang=es http://qualilogy.com/es/

    Creating an /application-quality/ folder with its own htaccess. with
    Redirect 301 /the-3-costs/?lang=es http://qualilogy.com/es/los-3-costes

    All these instructions on first line of the htaccess file.
    Nothing works.

    I will continue investigating. Maybe the rewrite instructions ?
    Do not hesitate to ask for any precision.
    Regards,
    Jean-Pierre

    JpFayolle

    (@jpfayolle)

    Allright,

    The problem comes from the /?lang parameter.
    I did try
    Redirect 301 /application-quality/the-3-costs/ http://qualilogy.com/en/the-3-costs/
    and it comes to:
    http://qualilogy.com/en/the-3-costs/?lang=es

    So I can redirect any page (fr, en, es) to the english one (en) but not to the one specific to the language.

    What should I do so that the parameter is taken in account?
    Redirectmatch?

    Do not hesitate to ask for any precision,
    Regards,
    Jean-Pierre

    JpFayolle

    (@jpfayolle)

    Topic closed.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Multisite multilingue redirection after migration’ is closed to new replies.