How can mod_rewrite be used to configure PHP pages based on URL?
Mod_rewrite can be used to configure PHP pages based on URL by rewriting the URL to point to a specific PHP file based on the requested URL. This allows for cleaner and more user-friendly URLs while still serving the appropriate PHP content. ```apache RewriteEngine On RewriteRule ^page/([^/\.]+)/?$ page.php?page=$1 [L] ``` In this example, any URL that starts with "page/" followed by a string of characters will be rewritten to point to "page.php" with the parameter "page" set to the value captured in the regex. This way, you can dynamically load different PHP pages based on the URL structure.