Back to website
Login
Home
Login
Register
Back to website
There was a problem loading the comments.
How to create a user-friendly URL using .htaccess?
Support Portal
»
Knowledgebase
» Viewing Article
Print
1 November 2020 10:24 AM
Others
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]
Share via
Did you find this article useful?
Related Articles
How to create a user-friendly URL using .htaccess?
How to Redirect subdomain to an external url
How to redirect a page to another page or website using .htaccess?
Comments
Add Comment
Replying to
Cancel
Captcha
On-Premise Help Desk Software by
SupportPal
Categories
4
Backup/Restore
24
cPanel - Control Panel
11
Databases
6
DNS - Nameserver
10
Domain Management
11
Email
6
— Mozilla Thunderbird
4
FTP
8
Mail Filters & SPAM
4
Others
11
Security
71
Softaculous
17
— Blog
15
— Forum
37
— CMS/Portal
60
SiteWorx (Control Panel)
2
— Backup/Restore
7
— SiteWorx Basic
4
— Domain Management
6
— Email
2
— FTP
3
— Others
4
— Security
32
— Softaculous
15
—— Blog
13
—— Forum
2
—— CMS/Portal
11
Mobile
4
— iOS/Apple
7
— Android
18
Wordpress
6
Installing a Control Panel
19
SolusVM
6
— SolusVM Basic
13
— SolusVM VPS Management
Tags
Wordpress Crons
© Shadowtek Web Solutions