diff options
author | Joe Orton <jorton@redhat.com> | 2016-04-06 11:35:45 +0100 |
---|---|---|
committer | Joe Orton <jorton@redhat.com> | 2016-04-06 11:35:45 +0100 |
commit | a4ba0cdfda0ff783b250eec9f0f613bf42931de7 (patch) | |
tree | aabaf9415a9887d95cf83df5bd0b7bc9ae249a87 /manual.conf | |
parent | 74880df89c2d40930b594ac5d3295b3b1c49bb8d (diff) | |
download | httpd-a4ba0cdfda0ff783b250eec9f0f613bf42931de7.tar.gz httpd-a4ba0cdfda0ff783b250eec9f0f613bf42931de7.tar.xz httpd-a4ba0cdfda0ff783b250eec9f0f613bf42931de7.zip |
use redirects for lang-specific /manual/ URLs
Diffstat (limited to 'manual.conf')
-rw-r--r-- | manual.conf | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/manual.conf b/manual.conf index d09757d..3aa2049 100644 --- a/manual.conf +++ b/manual.conf @@ -2,10 +2,12 @@ # This configuration file allows the manual to be accessed at # http://localhost/manual/ # -AliasMatch ^/manual(?:/(?:de|en|fr|ja|ko|ru))?(/.*)?$ "/usr/share/httpd/manual$1" +Alias /manual /usr/share/httpd/manual <Directory "/usr/share/httpd/manual"> Options Indexes AllowOverride None Require all granted + + RedirectMatch 301 ^/manual/(?:da|de|en|es|fr|ja|ko|pt-br|ru|tr|zh-cn)(/.*)$ "/manual$1 </Directory> |