How does the use of mod_rewrite impact the visibility of GET parameters in URLs when rewriting them for PHP files?

When using mod_rewrite to rewrite URLs for PHP files, the GET parameters may not be visible in the rewritten URLs. To solve this issue and make the GET parameters visible, you can use the QSA (Query String Append) flag in your mod_rewrite rules. This flag will append the existing query string to the rewritten URL.

RewriteEngine On
RewriteRule ^example/([^/]*)$ /example.php?id=$1 [QSA]