How can mod_rewrite be utilized to prevent an excessive number of files on a web server when users create new pages?
To prevent an excessive number of files on a web server when users create new pages, you can use mod_rewrite to rewrite URLs so that they point to a single PHP script that handles the dynamic content generation based on the URL. This way, instead of creating a new physical file for each page, you can use the URL parameters to determine the content to display.
```php
RewriteEngine On
RewriteRule ^page/([a-zA-Z0-9_-]+)$ index.php?page=$1 [L]
```
In this example, any URL that matches the pattern "page/[page-name]" will be rewritten to "index.php?page=[page-name]". You can then use the "page" parameter in your PHP script to dynamically generate the content based on the requested page.