Dear NLP-er and T2x,
This rewrite rule:
Code:
RewriteCond %{QUERY_STRING} (hl=|language=)(..|zh-TW|zh-CN)
RewriteRule ^(.*)$ http://%{HTTP_HOST}/%2/$1? [L,R=301]
Needs to be changed to:
Code:
RewriteCond %{QUERY_STRING} (hl=|language=)(zh-TW|zh-CN|..)
RewriteRule ^(.*)$ http://%{HTTP_HOST}/%2/$1? [L,R=301]
If you don't put the ".." match on the end, it will match zh before zh-TW and zh-CN.