Apache::LangURI

Rewrite Accept-Language headers from URI path and back
Download

Apache::LangURI Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Dorian Taylor
  • Publisher web site:
  • http://search.cpan.org/~dorian/

Apache::LangURI Tags


Apache::LangURI Description

Rewrite Accept-Language headers from URI path and back Apache::LangURI is a Perl module that will attempt to match the first segment of the path of an http URL to an RFC3066 < major >-< minor > language code. It will also optionally prepend the "best" language code to the path, should it not already be there. Language tags are normalized to a lower case major with an upper case minor and a hyphen in between.SYNOPSIS # httpd.conf PerlSetVar DefaultLanguage en # for redirecting the url based on the top language # in the inbound header PerlSetVar ForceLanguage on PerlAddVar IgnorePathRegex ^/foo # and the opposite: PerlAddVar IgnorePathRegex !^/foo/bar PerlTransHandler Apache::LangURI Requirements: · Perl


Apache::LangURI Related Software