How can mod_rewrite be utilized to mask the actual URL on a printer-friendly page in PHP?

When creating a printer-friendly page in PHP, you may want to mask the actual URL to make it more user-friendly. This can be achieved using mod_rewrite in the .htaccess file to rewrite the URL. By using mod_rewrite, you can create a more aesthetic and user-friendly URL for the printer-friendly page without changing the actual file structure.

RewriteEngine On
RewriteRule ^printer-friendly-page$ actual-printer-friendly-page.php [L]