Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I'm trying to add languages to my wordpress driven website and i installed xili-languages plugin. Unfortunately it uses lang param to differentiate between languages and i rather have seen something like http://domain.com/cn/article-in-chinese/ rather than http://domain.com/article-in-chinese/?lang=cn

share|improve this question
1  
If you're not forced to use xili-language, I can suggest Polylang which is a very promising plugin. –  gyo May 8 '13 at 8:03
    
This might help wordpress.stackexchange.com/questions/34810/… –  Mark Davidson Aug 9 '13 at 10:50
add comment

1 Answer 1

You would like to write: http://domain.com/cn/article-in-chinese/ so that wordpress understand : http://domain.com/article-in-chinese/?lang=cn.

I think it will be easier to use http://domain.com/article-in-chinese/lang/cn/. You need to write a new rule and a new tag in WP rewrite rules (Wordpress write those rules in your htaccess) with the functions add_rewrite_rules() and add_rewrite_tag().

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.