Sales & Customer Support: +254748285257

 

How to create a user-friendly URL using .htaccess?

Home > How to create a user-friendly URL using .htaccess?
 

Welcome once again to Hostnali Webhost, a Simple, Secure & Dependable hosting provider. We have optimized hosting plans, Reseller Hosting Plans, Master Reseller plans, VPS servers as well as Dedicated servers. Today, however, we will be focusing on [page_title]. Read on and get the knowledge and skills to make your Web Hosting experience fun.

If your website is using long URL like hostnali.com/files/folder/sitemap.html, you can change it into “hostnali.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]