Knowledgebase
HOW TO: create a user-friendly URL using .htaccess
Posted by Sugen S. 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 - 2018 Shinjiru International Inc. All Rights Reserved.