Apache Server configuration support - Redirect with query string

This is Interesting: Free IT Magazines  
Home > Archive > Apache Server configuration support > December 2007 > Redirect with query string





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Redirect with query string
mike_d_lawrence@yahoo.com

2007-12-04, 1:44 am

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?
shimmyshack

2007-12-05, 7:36 am

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=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?


rewrites with [QSA] should do it
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com