Knowledgebase
- Portal Home
- Knowledgebase
- Others
- How to create a user-friendly URL using .htaccess?
Categories
4
Backup/Restore
26 Basics of cPanel (Videos)
3 Control Panel
25 cPanel - Control Panel
11 cPanel Database Tutorials (Videos)
10 cPanel Domain Management (Videos)
5 cPanel Email (Videos)
4 cPanel FTP (Videos)
11 Databases
6 DNS - Nameservers
10 Domain Management
2 Domain/Transfer Managemet
11 Email
9 FTP
0 Getting Started
2 Installing a Control Panel
8 Mail Filters & SPAM
11 Mobile
3 Others
10 Security
76 Softaculous
5 SSL
1 Using the Client Portal
18 WHM
17 WordPress
Categories
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]
- 0 Users Found This Useful
Related Articles
PHP error: Allowed memory size of x bytes exhausted
If you are getting an error like "Allowed memory size of... in file...
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 site,...