To access querystring, you need to use the RewriteCond statement as follows:
RewriteEngine on RewriteCond %{QUERY_STRING} id=([^&]+)&title=([^&]+) RewriteRule ^video.php$ video.php/%1/%2 [L,R=301]
The above example works when the id and title parameters are in the exact order of your example. If the request may contain other parameters or if the parameters may be in any order, you will need to adjust the rules.
source share