How to create user-friendly url using .htaccess?

If your website is using long URL like example.com/files/folder/sitemap.html, you can change it into user-friendly URL like “example.com/sitemap” using .htaccess

You simply have to modify the following lines according to your needs and then add them to your .htaccess file.

RewriteEngine on
RewriteRule ^sitemap/$   /files/folder/sitemap.html [L]

Visit our blog for more knowledgebase articles !