OT, please help with apache2 RewriteRule

Gregory Nowak greg at romuald.net.eu.org
Mon Feb 2 15:39:52 EST 2009


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi all.

Please excuse the off topic post, but there are lots of people on here
smarter than myself, and I figured it wouldn't hurt to ask.

I've been trying to use RewriteRule in apache2 for a couple of hours
now to do url redirection, and can't get it to work. Here's the
situation, I'm running apache2, and have the following in my
virtualhost container:

"RewriteEngine on
RewriteRule ^/cgi-bin/\?list=(.*)$ /cgi-bin/ezmlm-browse\?list=$1"

Here's what I want to do. If someone goes to
http://www.example.com/cgi-bin/?list=... I want them to be
redirected to http://www.example.com/cgi-bin/ezmlm-browse?list=... The
"..." here represents anything that comes after the "?list=" part.

I'll admit that I haven't used regular expressions much, and that
they're definitely not one of my strong points. BTW, the rewrite
module itself is setup properly, I have another RewriteRule in that
same virtualhost container working just fine already. The problem is
getting the regexp right. If someone could please tell me where I'm
going wrong here, I would be grateful. Thanks in advance for any help, which would
be much appreciated.

Greg


- -- 
web site: http://www.romuald.net.eu.org
gpg public key: http://www.romuald.net.eu.org/pubkey.asc
skype: gregn1
(authorization required, add me to your contacts list first)

- --
Free domains: http://www.eu.org/ or mail dns-manager at EU.org
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkmHWhcACgkQ7s9z/XlyUyA2DgCgvP/u/YcwsdZijj9GCl1Yws+d
wWoAn3s5vMCJgVy0xitN2YK+ijACOTn8
=OTzH
-----END PGP SIGNATURE-----



More information about the Speakup mailing list