[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

r11107 - /man-cgi/conf/htaccess



Author: jfs
Date: Sun Apr 17 15:11:33 2016
New Revision: 11107

URL: http://svn.debian.org/wsvn/?sc=1&rev=11107
Log:
Add redirect so that http://manpages.debian.org/<section>/<manual> works. Add redirect for static content

Modified:
    man-cgi/conf/htaccess

Modified: man-cgi/conf/htaccess
URL: http://svn.debian.org/wsvn/man-cgi/conf/htaccess?rev=11107&op=diff
==============================================================================
--- man-cgi/conf/htaccess	(original)
+++ man-cgi/conf/htaccess	Sun Apr 17 15:11:33 2016
@@ -1,6 +1,6 @@
-Options ExecCGI Indexes FollowSymLinks
-IndexOptions -FancyIndexing
-AddHandler cgi-script .cgi
+#Options ExecCGI Indexes FollowSymLinks
+#IndexOptions -FancyIndexing
+#AddHandler cgi-script .cgi
 # Redirect errors to the script
 ErrorDocument 404 /static/not_found.html
 
@@ -24,8 +24,12 @@
 RedirectMatch 301 ^/man/([0-9ln]p?m?)/(.*$) /cgi-bin/man.cgi?sektion=$1\&query=$2\&apropos=0\&manpath=sid\&locale=en
 RedirectMatch 301 ^/(?:([^/]+)/)?man([0-9ln]p?m?)/(.*$) /cgi-bin/man.cgi?sektion=$2\&query=$3\&apropos=0\&manpath=sid\&locale=$1
 RedirectMatch 301 ^/man/([a-z]*)/(?:([^/]+)/)?([0-9ln]p?m?)/(.*$) /cgi-bin/man.cgi?manpath=$1\&sektion=$3\&query=$4\&apropos=0\&locale=$2
+RedirectMatch 301 ^/([0-9ln]p?m?)/(.*$) /cgi-bin/man.cgi?query=$2\&sektion=$1\&apropos=0
 RedirectMatch 301 ^/man/(?:([^/]+)/)?(.*$) /cgi-bin/man.cgi?query=$2\&apropos=1\&manpath=sid\&format=html\&locale=$1
 RedirectMatch 301 ^/index.html /cgi-bin/man.cgi
+RedirectMatch 301 ^/faq.html /cgi-bin/man.cgi?query=help.html
+RedirectMatch 301 ^/help.html /cgi-bin/man.cgi?query=help.html
+RedirectMatch 301 ^/info.html /cgi-bin/man.cgi?query=info.html
 
 
 # file types


Reply to: