Chris Devers wrote on 07.03.2005:

>On Mon, 7 Mar 2005, Jan Eden wrote:
>
>> But I need some rule to do this:
>> 
>> http://mysite.com/pages?id=1234 -> http://mysite.com/pages/1234
>> 
>> And since mod_rewrite does not parse the query string, I have a 
>> problem here.
>
>So use redirect instead of rewrite:
>
>    RedirectMatch /pages?id=(.*) http://mysite.com/pages/$1
> 
>Won't that work?

Ah, now I remember why this won't work: I use several different hostnames for 
my site, and I do not want them to have them changed when redirecting URLs.

Cheers,

Jan
-- 
Hanlon's Razor: Never attribute to malice that which can be adequately 
explained by stupidity.

--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>


Reply via email to