How can mod_rewrite be used to make .php files appear as HTML files to visitors?

Mod_rewrite can be used to rewrite URLs in a way that hides the file extension, making .php files appear as HTML files to visitors. This can help improve the aesthetics of your URLs and make them more user-friendly. To achieve this, you can use mod_rewrite to rewrite requests for .html files to their corresponding .php files behind the scenes. ```apache RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQUEST_FILENAME} !-f RewriteRule ^([^\.]+)$ $1.php [NC,L] ```