Redirect based on Accept-Language

Posted by Anthony Faull on Stack Overflow See other posts from Stack Overflow or by Anthony Faull
Published on 2010-05-22T12:18:29Z Indexed on 2010/05/22 12:50 UTC
Read the original article Hit count: 245

I need to honor the web browser's list of language preferences. Supported languages are English and French. For example: http_accept_language="jp-JP;fr;en-US;en" redirects to a directory called /French/. How can I do this with rewrite rules in my .htaccess file?

© Stack Overflow or respective owner

Related posts about apache

Related posts about .htaccess