How can mod_rewrite be used to convert index.php?page= URLs to index.html in PHP?
To convert index.php?page= URLs to index.html using mod_rewrite in PHP, you can create a RewriteRule in your .htaccess file that redirects requests from index.html to index.php?page=. This way, when a user accesses index.html, the server will internally redirect the request to index.php?page=, effectively hiding the query parameter from the URL. ```apache RewriteEngine On RewriteCond %{QUERY_STRING} ^page=(.*)$ RewriteRule ^index\.html$ /index.php?page=%1 [L] ```