PH Services
  • 0 Shopping Cart
  • Home
  • Store
    • Browse All
    • Hosting Basic Plan
    • SSL certificate
    • Hosting Superior Plan
    • Hosting Ultimate Plan
    • SEO Plans
    • Register a New Domain
    • Transfer Domains to Us
  • Announcements
  • Knowledgebase
  • Network Status
  • Contact Us
  • More
  • Account
    • Login
    • Register
    • Forgot Password?
  1. Portal Home
  2. Knowledgebase
  3. cPanel
  4. HOW TO: create a user-friendly URL using .htaccess

  Categories

19
Billing
36
cPanel

  Categories

  Support

  My Support Tickets   Announcements   Knowledgebase   Downloads   Network Status   Open Ticket

HOW TO: create a user-friendly URL using .htaccess Print

  • 0

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]


Was this answer helpful?

Related Articles

HOW TO: Add a Addon domain in cPanel HOW TO: Add a Addon domain in cPanel In order to create a Addon domain in cPanel... HOW TO: Create / Delete an FTP Account in cPanel Creating an FTP Account Login to cPanel. Click the FTP Accounts button in the Files section.... HOW TO: Optimize table in phpMyAdmin Optimizing your database tables We will be demonstrating how to optimize your MySQL tables.... HOW TO: Repair table in phpMyAdmin HOW TO: Repair table in phpMyAdmin Posted by on 27 June 2018 12:37 PM How to... HOW TO: Check the MySQL version in My cPanel HOW TO: Check the MySQL version in My cPanel Posted by on 03 July 2018 12:50 PM...
« Back

  Support

  My Support Tickets   Announcements   Knowledgebase   Downloads   Network Status   Open Ticket
  • Contact Us

Copyright © 2025 PH Services. All Rights Reserved.


Loading...
Loading...
Choose language
العربية
Azerbaijani
Català
中文
Hrvatski
Čeština
Dansk
Nederlands
English
Estonian
Persian
Français
Deutsch
עברית
Magyar
Italiano
Macedonian
Norwegian
Português
Português
Română
Русский
Español
Svenska
Türkçe
Українська

Generate Password

Please enter a number between 8 and 64 for the password length