Back to website
Login
Home
Login
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
19/06/2019 5:04 PM
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?
Categories
5
Billing & Invoices
13
Domain Name Registration & Managment
6
— change name servers with other providers
17
Smartermail E-Mail
3
SSL Certificate and Encryption Support
95
Dedicated & Cloud Server Management
3
— Useful Linux Server Articles
7
— Installing a Control Panel
59
— SiteWorx (Control Panel)
2
—— Backup/Restore
4
—— Domain Management
5
—— Email
2
—— FTP
3
—— Others
4
—— Security
7
—— SiteWorx Basic
32
—— Softaculous
15
——— Blog
2
——— CMS/Portal
13
——— Forum
19
— SolusVM (LegacyVPS)
6
—— SolusVM Basic
13
—— SolusVM VPS Management
6
— WHM (Root)
1
— Getting Started
1
— DirectAdmin (Admin)
36
Reseller Hosting Guides
11
— Plesk Control Panel
5
— DirectAdmin Control Panel
20
— WHM Control panel (Reseller Hosting)
4
—— Inactive Account Manager
271
Cloud Website Hosting
24
— Plesk User Guide
1
— Premium Wordpress Hosting with Plesk
189
— cPanel User Guide
11
—— Databases
10
—— Domain Management
24
—— Email
6
——— Mozilla Thunderbird
4
—— FTP
8
—— E-Mail Filters & SPAM
11
—— Mobile
8
——— Android
3
——— iOS/Apple
10
—— cPanel Security
79
—— Softaculous (cPanel)
17
——— Blog
45
——— CMS/Portal
15
——— Forum
5
—— SSL (cPanel)
1
—— mailscanner
5
— FileZilla Client
57
— DirectAdmin User Guide
4
—— Backup/Restore
8
—— Database
9
—— Domain Management
17
—— Email
4
—— FTP
7
—— Mail Filters & SPAM
1
—— DNS Management
1
—— Security
3
OnAPP Cloud VPS Reseller Guides
6
Others
20
Wordpress Guides
1
SolidCP Email
Tags
BT
cpanel
database
DirectAdmin
DNS
email
firewall
gmail
Hotmail
imac
ios
ipad
iPadOS
iphone
letsencrypt
Mac
Mac mail
MacMail
MacOS
MacOSX
Mail
mailscanner
outlook
Redirect
Remote Access
Reseller Name Servers
Select PHP Version
ssl
web.config
wordpress
© The Hosting Heroes
English