|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
rewrite by language?
Hello,
I need to redirect browsers based on their language. For instance, I want Chinese language users to go to a specific optimised page, Japanese users to another. Can this be done with mod_rewrite? If so, can someone please post an example? Thank you. |
|
#2
|
|||
|
|||
|
I don't know of any existing examples, but you would want to write a set of rules, parsing for the HTTP_ACCEPT_LANGUAGE server variable (e.g.: for my browser, it returns "en"). If you'd like to take a crack at it yourself, you can find other practical examples (that you can learn from) at: http://httpd.apache.org/docs/misc/rewriteguide.html
__________________
Michael
|
|
#3
|
|||
|
|||
|
Michael,
Thanks for the reply. I've been staring at that page all day, unfortunately I can't figure it out I will keep trying.Thanks, Allen |
![]() |
| Viewing: Dev Shed Forums > System Administration > Apache Development > rewrite by language? |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|