[users@httpd] Content Negotiation - English zh-TW and Chinese zh-CN

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

Our website correctly handles several languages with content negotiation,
but we wish to direct only our Chinese customers to our simplified Chinese
pages, and have all other Chinese language-tags return English pages.  Does
anyone know how to make our Chinese pages only show up for zh-CN browsers?

  After reading the Apache manual and the relevant articles, I became
convinced that modifying the following lines would produce the intended
effect:

AddLanguage zh-CN .zh-CN
AddLanguage zh-TW .en   (was: AddLanguage zh-TW .zh-TW -- pages that are in
development)

AddLanguage zh .en (was added)

This does work for the Chinese language tag variants, but it completely
breaks our standard English content-negotiation, so we now get German (.de)
pages where we should be getting English pages.(And English is higher in the
language preferences, so I can only guess it reaches rule 8 of content
negotiation, and picks alphabetically)

I got the same results on versions 1.3.24 and 2.0.52 of apache(1.3.24 being
our live machine), and would appreciate any help on getting our Simplified
Chinese pages to the appropriate audience and English pages to other Chinese
viewers.

Thanks,

Alex Sink


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx



[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux