Knowledgebase
HOW TO: Create a User-Friendly URL using .htaccess
Posted by on 03 August 2018 04:51 PM

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]

 

To edit the .htaccess file, you may want to refer this guide: HERE

(0 vote(s))
Helpful
Not helpful

Comments (0)
Copyright © 1998 - 2021 Shinjiru International Inc. All Rights Reserved.