logo
Ask your WordPress questions! Pay money and get answers fast! (more info)

Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.

If the asker does not get an answer then they have 10 days to request a refund.

$10
Rewriting multilingual URLs in an AJAX wp theme

I'd like to add for 3 different languages in an Ajax template and used WPML plugin to do so.

http://www.thaiorchid.be/nl/home/ (for dutch...)
...

As it's an ajax template I had to used a solution (http://stackoverflow.com/questions/10755100/best-solution-to-redirect-urls-to-an-ajax-version )to redirect the urls on the correct version of the website.

But I'd like this ajax redirection NOT to work for the /nl/ part so I can use other languages.

Right now when you type: http://www.thaiorchid.be/nl/home/ (for dutch...) it redirects to http://www.thaiorchid.be/#menu-item-
anhy idea how to rewrite this differently depending on the the language?

Many thanks

Jonathan Surinx | 06/26/12 at 5:59am Edit
Tutorial: How to assign prize money


(1) Possible Answers Submitted...

See a chronological view of answers?

Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.

  • avatar
    Last edited:
    06/28/12
    4:59am
    Sébastien | French WordpressDesigner says:

    instead of http://www.thaiorchid.be/nl/home/
    use http://www.thaiorchid.be/nl

    and instead http://www.thaiorchid.be/en/home/
    use http://www.thaiorchid.be/en

    and that works

    • 06/28/12 5:54am

      Jonathan Surinx says:

      Hmmm no same thing... (well at least the content is the same while it should be the translated one).

      I just checked for another page that is already translated in EN but same redirection happens:

      http://www.thaiorchid.be/en/restaurant/

      Any other ideas?
      Thanks

This question has expired.





Current status of this question: Community pot



Please log in to add additional discourse to this page.





Warning: Please do not give out any FTP or ssh credentials to anyone, unless you trust them completely. Giving out login details is dangerous.

If the asker does not get an answer then they have 10 days to request a refund.