projects
/
mirror
/
dsa-puppet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix class
[mirror/dsa-puppet.git]
/
modules
/
roles
/
templates
/
static-mirroring
/
vhost
/
manpages.debian.org.erb
diff --git
a/modules/roles/templates/static-mirroring/vhost/manpages.debian.org.erb
b/modules/roles/templates/static-mirroring/vhost/manpages.debian.org.erb
index
103b8f1
..
8305ca6
100644
(file)
--- a/
modules/roles/templates/static-mirroring/vhost/manpages.debian.org.erb
+++ b/
modules/roles/templates/static-mirroring/vhost/manpages.debian.org.erb
@@
-13,6
+13,11
@@
RewriteMap manpagesall dbm:/srv/static.debian.org/mirrors/manpages.debian.org/cur/rwmap.dbm
RewriteMap lc int:tolower
RewriteMap manpagesall dbm:/srv/static.debian.org/mirrors/manpages.debian.org/cur/rwmap.dbm
RewriteMap lc int:tolower
+ # Redirect old CGI paths (without CGI file name), keeping at least the
+ # manpage (the other parameters are left out for simplicity).
+ RewriteCond %{QUERY_STRING} (?:.*(?:^|&))query=([^&]+)
+ RewriteRule ^/?$ /%1 [redirect=307,qsdiscard,last]
+
# URLs which end in a slash do not need to be rewritten
RewriteRule /$ - [last]
# URLs which end in a slash do not need to be rewritten
RewriteRule /$ - [last]