r9250 - /man-cgi/conf/htaccess
Author: jfs
Date: Tue Jul 3 23:49:30 2012
New Revision: 9250
URL: http://svn.debian.org/wsvn/?sc=1&rev=9250
Log:
Review redirects and define a new one to make it possible to have redirects
when accessing to
http://manpages.debian.net/man/<RELEASE>/<SECTION>/<MANPAGE>
This now works in addition to:
http://manpages.debian.net/man/<SECTION>/<MANPAGE>
http://manpages.debian.net/man/<MANPAGE>
Modified:
man-cgi/conf/htaccess
Modified: man-cgi/conf/htaccess
URL: http://svn.debian.org/wsvn/man-cgi/conf/htaccess?rev=9250&op=diff
==============================================================================
--- man-cgi/conf/htaccess (original)
+++ man-cgi/conf/htaccess Tue Jul 3 23:49:30 2012
@@ -3,9 +3,11 @@
AddHandler cgi-script .cgi
# redirections for HTML documentation
-RedirectMatch 301 ^/man/([0-9ln]p?m?)/(.*$) /cgi-bin/man.cgi?query=$2\&sektion=$1\&apropos=0\&manpath=Debian+Sid\&locale=en
-RedirectMatch 301 ^/man/(.*$) /cgi-bin/man.cgi?query=$1\&apropos=1\&manpath=Debian+Sid\&format=html\&locale=en
+RedirectMatch 301 ^/man/([0-9ln]p?m?)/(.*$) /cgi-bin/man.cgi?sektion=$1\&query=$2\&apropos=0\&manpath=sid\&locale=en
+RedirectMatch 301 ^/man/([a-z]*)/([0-9ln]p?m?)/(.*$) /cgi-bin/man.cgi?manpath=$1\&sektion=$2\&query=$3\&apropos=0\&locale=en
+RedirectMatch 301 ^/man/(.*$) /cgi-bin/man.cgi?query=$1\&apropos=1\&manpath=sid\&format=html\&locale=en
RedirectMatch 301 ^/index.html /cgi-bin/man.cgi
+
# file types
AddType 'text/html; charset=utf-8' htm
Reply to: