How can using mod_rewrite impact search engine rankings for a website?

Using mod_rewrite can impact search engine rankings for a website by allowing you to create clean, user-friendly URLs that are easier for search engines to crawl and index. By rewriting URLs to be more descriptive and keyword-rich, you can improve the overall SEO of your website and potentially increase your search engine rankings.

RewriteEngine On
RewriteRule ^products/([0-9]+)/?$ product.php?id=$1 [NC,L]