How to create user-friendly url using .htaccess?

DateMay 25, 2021

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 !

The post How to create user-friendly url using .htaccess? appeared first on HostingB2B.

© 2024 All Rights Reserved. HostingB2B