mod_rewrite htaccess redirect on specific request

Posted by John on Stack Overflow See other posts from Stack Overflow or by John
Published on 2010-05-26T13:30:29Z Indexed on 2010/05/26 13:31 UTC
Read the original article Hit count: 200

is there a way to make mod_rewrite redirect all urls contain the following request:

?do=page&f=*

to a specific page? for example:

http://example.com/index.php?do=page&f=2
http://example.com/index2.php?do=page&f=4
http://example.com/page.php?do=page&f=22

to:

http://example.com/custom.php

© Stack Overflow or respective owner

Related posts about .htaccess

Related posts about mod-rewrite