Benim siteler 4 dilde ve onlar aşağıdaki deseni ile erişilir:
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
Benim .htaccess dosyasında aşağıdaki mod_rewrite kuralı kullanıyorum:
RewriteEngine on
RewriteRule ^([a-z]{2}(-[A-Z]{2})?)/(.*) $3?lang=$1 [L,QSA]
Yani yazarak http://example/en/index.php ve http://example/es/index.php efectively http://example/index.php?lang=en beni yönlendirir ve http://example/index.php?lang=es, sırasıyla. Ama bu http://example/index.php?lang=zh-tw ile çalışmak ve http://example/index.php?lang=zh-cn etmez
Sadece diyor ki: The requested document was not found on this server.
Bu tire (zh-tw ve zh-cn) ile yapmak bir şeydir?
Ben nasıl bu sorunu düzeltebilirim?