Ask your WordPress questions! Pay money and get answers fast! Comodo Trusted Site Seal
Official PayPal Seal

Rewriting multilingual URLs in an AJAX wp theme WordPress

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

Answers (1)

2012-06-28

Sébastien | French WordpressDesigner answers:

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


Jonathan Surinx comments:

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