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
2019/06/19 4:48 PM
Others [IE]
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 Redirect subdomain to an external URL?
How to disable directory browsing using .htaccess?
How to Create or Delete a Directory Using the FileZilla FTP Client?
Comments
Add Comment
Replying to
Cancel
Captcha
Refresh
Your browser does not support JavaScript!
Categories
4
Backup/Restore [IE]
24
cPanel [IE]
11
Databases [IE]
6
DNS - Nameservers [IE]
11
Domain Management [IE]
11
Email [IE]
6
— Mozilla Thunderbird [IE]
10
FTP [IE]
5
— FileZilla Client [IE]
6
Installing a Control Panel [IE]
8
Mail Filters & SPAM [IE]
12
Mobile [IE]
7
— Android [IE]
4
— iOS/Apple [IE]
3
Others [IE]
11
Security [IE]
76
Softaculous [IE]
16
— Blog [IE]
43
— CMS/Portal [IE]
15
— Forum [IE]
5
SSL (cPanel) [IE]
20
WordPress [IE]
39
DirectAdmin [IE]
4
— Backup/Restore [IE]
8
— Databases (DA) [IE]
8
— Domain Management (DA) [IE]
6
— Email (DA) [IE]
4
— FTP [IE]
7
— Mail Filters & SPAM [IE]
19
WHM [IE]
12
— WHM (For Resellers) [IE]
6
— WHM (Root) [IE]
2
VPS [IE]
© Getspace - Ireland
German
English
Spanish
Polish
Romanian
Russian