Redirect with query string

Salutations all,

I'm trying to get Apache to redirect a request such as

www.server.com/content.php?product=33

to say

www.server.com/content.php?product=old_products

I'm using the .htaccess file using a redirect directive but it doesn't
seam to work and still goes to the product=33 page.

redirect /content.php?product=33 www.server.com/content.php?product=old_products

I think it's not looking at the query string and redirecting to the
same file.

Anyone have a good way to do this?
mike_d_lawrence [ Di, 04 Dezember 2007 06:01 ] [ ID #1885396 ]

Re: Redirect with query string

On Dec 4, 5:01 am, mike_d_lawre... [at] yahoo.com wrote:
> Salutations all,
>
> I'm trying to get Apache to redirect a request such as
>
> www.server.com/content.php?product=33
>
> to say
>
> www.server.com/content.php?product=old_products
>
> I'm using the .htaccess file using a redirect directive but it doesn't
> seam to work and still goes to the product=33 page.
>
> redirect /content.php?product=33www.server.com/content.php?product=ol d_products
>
> I think it's not looking at the query string and redirecting to the
> same file.
>
> Anyone have a good way to do this?

rewrites with [QSA] should do it
shimmyshack [ Mi, 05 Dezember 2007 12:32 ] [ ID #1886292 ]
Webserver » alt.apache.configuration » Redirect with query string

Vorheriges Thema: running CGIs as authenticated user?
Nächstes Thema: newbie: setup problem