From: Joshua Slive The ForceLanguagePriority directive uses the given
- LanguagePriority to satisfy two common negotation results. ForceLanguagePriority Prefer uses LanguagePriority
- to serve a one valid result, rather than returning an HTTP result 300,
- MULTIPLE CHOICES, when there are several equally valid choices.
- If the directives below were given, and the user's Accept-Language
- header assigned en and de each as quality .500 (equally acceptable)
- then then first matching variant, en, will be served; ForceLanguagePriority Fallback uses LanguagePriority
- to serve a valid result, rather than returning an HTTP result 406,
- NOT ACCEPTABLE. If the directives below were given, and the user's
- Accept-Language only permitted an es langauge response, but such a
- variant isn't found, then the first variant from the LanguagePriority
- list below will be served; The Both options, Prefer and Fallback, may be specified, so either the
first matching variant from LanguagePriority will be served if more
@@ -264,13 +270,15 @@
then Note that this directive only has an effect if a 'best'
- language cannot be determined by any other means. Correctly
- implemented HTTP/1.1 requests will mean this directive has no
- effect.ForceLanguagePriority directive
-
Syntax: ForceLanguagePriority
- None | [Prefer] [Fallback]
+ None|Prefer|Fallback [Prefer|Fallback]
+ Default:
+ ForceLanguagePriority None
Context: server config, virtual
host, directory, .htaccess
@@ -198,32 +200,36 @@
Module: mod_negotiation
-
-
-
- LanguagePriority en fr de
- ForceLanguagePriority Prefer
-
-
+ LanguagePriority en fr de
- ForceLanguagePriority Fallback
- ForceLanguagePriority directive uses the given
+ LanguagePriority to satisfy
+ negotation where the server could otherwise not return a single
+ matching document.ForceLanguagePriority Prefer uses
+ LanguagePriority to serve a one valid result, rather
+ than returning an HTTP result 300 (MULTIPLE CHOICES) when there
+ are several equally valid choices. If the directives below were
+ given, and the user's Accept-Language header assigned en and de
+ each as quality .500 (equally acceptable) then then first matching
+ variant, en, will be served.
+
+
+ LanguagePriority en fr de
+ ForceLanguagePriority Prefer
+ ForceLanguagePriority Fallback uses
+ LanguagePriority to serve a valid result, rather than
+ returning an HTTP result 406 (NOT ACCEPTABLE). If the directives
+ below were given, and the user's Accept-Language only permitted an
+ es langauge response, but such a variant isn't found, then the
+ first variant from the LanguagePriority list below will be
+ served.
+ LanguagePriority en fr de
+ ForceLanguagePriority Fallback
+ foo.html.fr would be returned.
None. Correctly implemented HTTP/1.1 requests
+ will mean this directive has no effect.
See also: DefaultLanguage and - AddLanguage + href="./mod_mime.html#defaultlanguage">DefaultLanguage, + AddLanguage and + ForceLanguagePriority.