summaryrefslogtreecommitdiffstats
path: root/manual.conf
diff options
context:
space:
mode:
Diffstat (limited to 'manual.conf')
-rw-r--r--manual.conf4
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>