If your website is using a 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]
- 0 Users Found This Useful
Related Articles
Preventing bandwidth theft using .htaccess
While all HostRocket plans include plenty of bandwidth (transfer) nobody ever has enough...
Blocking users by IP address using .htaccess
Should you find that a few unruly visitors are causing you problems by posting unwanted messages...
Directory protection using .htaccess
One of the more common/popular uses of .htaccess is to password protect specific directories...
Creating custom error pages using .htaccess
One of the many things one can do to make their website a little more professional-looking is to...
Redirection using .htaccess
Most websites are constantly changing "works in progress" and as one updates, rearranges and...