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

Lst updated on
September 19, 2016
Contents

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]

Need help with deployments, consulting, support, migration planning, or proof of concept?
Get Free Consulting
Microsoft 365 Migration Form

I would like to send my contact information to MedhaCloud so that MedhaCloud can share additional information about products, services, thought leadership and invitations to flagship events with me by email. *

By submitting this form, I acknowledge that someone from MedhaCloud will contact me via email or phone to discuss my request.

Related Article

View All
chevron-down linkedin facebook pinterest youtube rss twitter instagram facebook-blank rss-blank linkedin-blank pinterest youtube twitter instagram