i've a multilanguage site. I've set up the .htaccess and urlmanager rules, and they correctly works. One last thing remain
I want that direct visit to www.mysite.com auto append the language in this way:
www.mysite.com -> www.mysite.com/en/ or obviously to www.mysite.com/fr/ etc etc
Now with my rules, after the first access to the home, all the links to the home thanks to ovverriden createUrl correctly became www.mysite.com/en/ but not the first access in case a user directly wrote in the browser www.mysite.com
How can make also the first access url to became www.mysite.com/en/?
I can assign a default language in case the aren't no cookie or no session or no GET or POST params.
Help me!!
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…