.htaccess, two consecutive rewrites?

Posted by Matthew Haworth on Stack Overflow See other posts from Stack Overflow or by Matthew Haworth
Published on 2010-03-16T10:13:21Z Indexed on 2010/03/16 10:16 UTC
Read the original article Hit count: 238

Filed under:

I need to take a url, "/ServiceSearch/r.php?n=blahblah", and have it go to "/search/blahblah/" so that it appears in the browser as "/search/blahblah", but I actually want it to REALLY be going to "r.php?n=ServiceSearch&n=blahblah"..

So I was thinking I'll need to rewrite the first URL to "/ServiceSearch/r.php?n=blahblah" and then the second url, "/search/blahblah/", to the third, "r.php?n=ServiceSearch&n=blahblah".

Well, I know this is wrong, but it's my best guess. I'm really struggling with it.

© Stack Overflow or respective owner

Related posts about htaccess