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
Modifying existing .htaccess files
To modify/add directives to the .htaccess file in your public_html directory using "File...
Introduction to .htaccess
What is .htaccess? The Apache Web server utilizes a per-directory access and configuration...
Preventing bandwidth theft using .htaccess
While all HostRocket plans include plenty of bandwidth (transfer) nobody ever has enough...
How to redirect a page to another page or website using .htaccess?
If a page on your website no longer exists and you want to redirect it to your new page or...
Blocking users by IP address using .htaccess
Should you find that a few unruly visitors are causing you problems by posting unwanted messages...