I've got a super lengthy querystring which ALWAYS begins such as this:

  mydomain.com/bincgi/sql_query.php?alot alot alot of variables passed along

What's the regular expression to create a rewriteRule if I wish to pass on all of the variables but via this link:

  mydomain.com/search/all variables here instead.....

Therefore the 4g iphone is exactly what I plan to write like a link, however the "REAL" link is the first...

Simplified put, I have to replace the /bincgi/sql_query.php with /search/

We do hope you know very well what I'm searching for...

Thanks

This will work:

RewriteEngine On
RewriteRule ^/?search/?$ bincgi/sql_query.php [QSA,L]

The QSA (query string append) will handle the query string for you personally, you don't need to wreck havoc on it by hand.