To redirect a specific page ,you can use :
RewriteEngine on
RewriteRule ^page\.php$ http://Google.com/ [NC,L,R]
The rule above will redirect http://example.com/page.php
to http://example.com/
including any querystrings from the old uri to the new one. ie: /page.php?querystring
=> http://example.com/?querystring
.
If you want to redirect a specific page with a specific query perameter, you can use the following
RewriteEngine on
RewriteCond %{QUERY_STRING} ^id=123$
RewriteRule ^page\.php$ http://example.com/? [L,R]
This will redirect /page.php?id=123
to http://example.com/
and it does not append the old querystring id=123
to the destination url http://example.com/
as we have discarded them using the ?
in Rule's target url http://example.com/ ?
.