Skip to content

How to Create a User-friendly URL Using htaccess Print

  • 0

If your website is using a long URL such as example.com/files/folder/sitemap.html, you can change it to "example.com/sitemap" 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]


Was this answer helpful?

« Back

Take Your Host

Everything you came for.

Find your way to the right service or support channel. This is a navigation guide, not an AI chat or a support agent.

Do not enter passwords or payment details.

End this chat?

If you end the chat, the current conversation will be closed and a new empty chat will start.

TakeYourHost AIAsk about services, orders, domains, and support.
Screenshot preview Screenshot attached