How can mod_rewrite be utilized to create user-friendly URLs for PHP pages with dynamic parameters?

When working with PHP pages that have dynamic parameters, the URLs can often be long and difficult to read. Mod_rewrite can be utilized to create user-friendly URLs by rewriting the URLs to a more readable format. This can improve the user experience and make the URLs more search engine friendly. ```apache RewriteEngine On RewriteRule ^products/([0-9]+)/?$ product.php?id=$1 [NC,L] ``` In this example, the mod_rewrite rule rewrites a URL like `example.com/products/123` to `example.com/product.php?id=123`. This allows for a more user-friendly URL structure while still passing the dynamic parameter to the PHP page.