QSA appends to the internal scripting query string, and makes it the Last rewrite rule executed.
Example of .htaccess file: RewriteRule ^folder/([a-zA-Z-]*).html /folder/ab.php?id=$1 [QSA,L]