What is the purpose of using .htaccess to fake folders on a website?

Using .htaccess to fake folders on a website can help create cleaner and more user-friendly URLs. By rewriting URLs with .htaccess, you can make it appear as though certain pages or directories exist in different locations on your website, even if they do not actually exist. This can improve the overall user experience and make your website more organized.

RewriteEngine On
RewriteRule ^folder-name/([^/]*)$ /index.php?page=$1 [L]