OT, please help with apache2 RewriteRule
Trevor Astrope
astrope at tabbweb.com
Mon Feb 2 15:53:03 EST 2009
It looks like you have a trailing quote at the end of the rule. Also, try
adding an explicit action at the end. I'm not sure if redirect is the
default action or not, but try adding [R] or [PT] to the end of the rule.
On Mon, 2 Feb 2009, Gregory Nowak wrote:
> -----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-----
> _______________________________________________
> Speakup mailing list
> Speakup at braille.uwo.ca
> http://speech.braille.uwo.ca/mailman/listinfo/speakup
>
More information about the Speakup
mailing list