Redirect with query string
am 04.12.2007 06:01:31 von mike_d_lawrence
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?
Re: Redirect with query string
am 05.12.2007 12:32:55 von shimmyshack
On Dec 4, 5:01 am, mike_d_lawre...@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