Link copied to clipboard!
Tutorials

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

Surya Reddy
Surya Reddy
IT Support Engineer
2016-09-19T10:39:291 min read
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
Surya Reddy
Written by

Surya Reddy

IT Support Engineer3+ 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

Need Expert Help?

Our team of cloud and IT experts is ready to help you solve your toughest challenges. Get personalized assistance today.