Forum Moderators: phranque

Message Too Old, No Replies

Rewrite rule with params

         

ramarn

11:58 am on Nov 15, 2010 (gmt 0)

10+ Year Member



Hi, I just need to redirect a page that don't exists on server:

index.pl?url=www.domain.com&email=user@domain.com

to another with same params:

addurl.php?url=www.domain.com&email=user@domain.com

I try to do this with htaccess with no success. Please, I need help.

Thanks.

wilderness

12:31 pm on Nov 15, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



"redirect+question+mark [google.com]"

g1smd

1:40 pm on Nov 15, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



What code did you try so far?

Use a RewriteRule and detect the QUERY_STRING with a preceding RewriteCond.

jdMorgan

11:14 pm on Nov 17, 2010 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



...or if *all* users are to be redirected, then no explicit test of the query string may even be needed, since query strings are passed through mod_rewrite rules unchanged by default.

Jim