# # Provide access to the documentation on your server as # http://yourserver.example.com/manual/ # The documentation is always available at # http://httpd.apache.org/docs/2.2/ # # Required modules: mod_alias, mod_setenvif, mod_negotiation # mod_setenvif, mod_negotiation # AliasMatch ^/manual(?:/(?:da|de|en|es|fr|ja|ko|pt-br|ru|tr|zh-cn))?(/.*)?$ "/home/services/httpd/manual$1" Options Indexes AllowOverride None Require all granted Order allow,deny Allow from all SetHandler type-map # .tr is text/troff in mime.types! ForceType text/html AddLanguage da .da SetEnvIf Request_URI ^/manual/(da|de|en|es|fr|ja|ko|pt-br|ru|tr|zh-cn)/ prefer-language=$ RedirectMatch 301 ^/manual(?:/(da|de|en|es|fr|ja|ko|pt-br|ru|tr|zh-cn)){2,}(/.*)?$ /manual/$1$2 LanguagePriority en da de es fr ja ko pt-br ru tr ForceLanguagePriority Prefer Fallback