php - mod_rewrite works for URLs with en, es but not zh-tw and zh-cn? -


My sites are in 4 languages ​​and are used with the following pattern:

  Http: //example/index.php? Lang = en http: //example/index.php? Lang = es http: //example/index.php? Lang = zh-tw http: //example/index.php? Lang = zh-cn  

I am using the following mod_rewrite rule in my .htaccess file:

< Pre> RewriteRule ^ RewriteRule ^ ([az] {2} (- [AZ] {2})?) / (. *) $ 3? Lang = $ 1 [L, QSA]

then typing and effectively redirecting me and respectively. But he does not work with and

it just says: The requested document was not found on this server.

This hyphen (zh-tw and zh-cn)?

How can I fix this problem?

change [AG] with [az] .


Comments

Popular posts from this blog

Eclipse CDT variable colors in editor -

AJAX doesn't send POST query -

wpf - Custom Message Box Advice -