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

Bug#507999: VirtualDocumentRoot and Redirect via htaccess yield wrong result

Package: apache2
Version: 2.2.3-4+etch6
Severity: normal

I redirect a few debian.net domains to their rightful locations,
such as patches.debian.net. This is done with

  VirtualDocumentRoot /srv/apache2/debian.net/htdocs/%-3+/

and then /srv/apache2/debian.net/htdocs/patches/.htaccess with the
following content:

  RedirectTemp / http://patch-tracking.debian.net/

Unfortunately, something seems to eat that trailing slash, because
even though http://patches.debian.net works,
http://patches.debian.net/package yields
http://patches-tracking.debian.netpackage without the slash.

I tried RedirectMatch ^/(.*) and ^(.*) and also RedirectTemp with
/patches/ instead of /, but none of those worked either.

-- System Information:
Debian Release: 5.0
  APT prefers unstable
  APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)

Kernel: Linux 2.6.26-1-amd64 (SMP w/1 CPU core)
Locale: LANG=en_GB, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash

 .''`.   martin f. krafft <madduck@debian.org>
: :'  :  proud Debian developer, author, administrator, and user
`. `'`   http://people.debian.org/~madduck - http://debiansystem.info
  `-  Debian - when you have better things to do than fixing systems

Attachment: digital_signature_gpg.asc
Description: Digital signature (see http://martin-krafft.net/gpg/)

Reply to: