> ## Knowledge Base Index
> Fetch the complete knowledge base index at: https://help.ex2.com/sitemap.xml
> Use this file to discover available pages before exploring further.
> Pure-Markdown content can be obtained by appending a '.md' suffix to the content URLs listed in the sitemap (without the trailing slash).

# How to create a user-friendly url using htaccess?

If your website is using long [URL](https://help.ex2.com/en/article/what-is-a-url-1rlh9di/?bust=1784820887559) like example.com/files/folder/sitemap.html, you can change it into "example.com/sitemap" in [.htaccess](https://help.ex2.com/en/article/what-is-the-htaccess-file-and-what-is-it-used-for-1mgswq0/?bust=1784826921560)

# Here's how to create a user-friendly url using 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]
```