Tutorials
How to create a user-friendly URL using .htaccess?

Surya Reddy
IT Support Engineer
24
How to create a user-friendly URL using .htaccess?
create a user-friendly URL using .htaccess
If your website is using long URL like example.com/files/folder/sitemap.html, you can change it into "example.com/sitemap" in .htaccess
Modify this line according to your needs and then add this code to your .htaccess file.
RewriteEngine on
RewriteRule ^sitemap/$ /files/folder/sitemap.html [L]
Topics
htaccessuser-friendly URLwebsite optimization

Written by
Surya Reddy
IT Support Engineer • 3+ years
Surya is an IT Support Engineer at Medha Cloud, specializing in managed IT support and Microsoft technologies. He provides technical assistance to clients, troubleshoots complex IT issues, and ensures smooth day-to-day operations for businesses.
Managed IT SupportMicrosoft TechnologiesTechnical Support
Follow on LinkedIn