• [email protected]
  • Afghanistan's #1 Web Hosting Company Since 2006
PAMIR WEBHOSTING LLC.

24/7 Support

Technical support 24/7

+93 (0) 705 800 700

Need Help? Call Us Anytime

Sign In

Acces Client Area

DEALS
MENU MENU
  • Domains
    • Domains

      Select, Register and Establish your domain with us.
    • Registration
    • Domain Reseller
  • Hosting
        • Web Hosting

          Get website performance reliable web hosting.
        • Linux Hosting
        • Windows Hosting
        • Reseller Hosting

          Get Business Ready with the premium Linux Reseller Hosting!
        • Linux Reseller
        • Windows Reseller
  • VPS Server
    • VPS Server

      Build your business empire using the VPS power.
    • Linux Server
    • Windows Server
  • Dedicated Server
    • Dedicated Server

      Keep noisy neighbors at bay with a server of your own.
    • Linux Server
    • Windows Server
  • Email & Office
    • Email & Office

      Communicate like a pro with advanced mailing solutions.
    • Microsoft Office 365
    • Business Email
    • G Suite
  • Security & Backup
        • Security

          Let us take on your day-to-day web security challenges
        • SSL Certificate
        • SpamExperts
        • SiteLock
        • Backup

          Backing up your IT infrastructure is made easy
        • CodeGuard
  • Services
    • Managed Services

      Custom cloud to meet your business needs.
    • Amazon Web Services
    • Microsoft Azure
    • Web Development
    • 3CX Phone System
    • VOS3000 Hosting
    • Licensing Distributor
  • About
    • Meet Managed Hosting Expert

      Clean, authentic, and transparent.
    • Who We Are
    • Why Choose Us
    • Announcements
    • Support Center
    • Contact Us
    • Blog
  • DEALS
  • 0 Shopping Cart
  • More
  1. Portal Home
  2. Knowledgebase
  3. cPanel/WHM
  4. Change /whm & /cpanel URLs

  Categories

6
Billing
30
cPanel/WHM
2
DirectAdmin
8
eMail/Webmail
5
Features
4
FTP Issues
14
Hosting Issue.
3
Joomla!/WordPress
2
Plesk/Onyx
12
Pre-Sale Questions
3
Resource Limits
16
Security Issue
7
Server Issues
5
Server Modules
8
SQL/Databases
6
Tech Support
3
Tips and Tricks
10
VPS/Dedicated

  Categories

  Tag Cloud

Advance Firewall apache APF BDF clamav cloudlinux cpanel cpanel mail cPanel/WHM duplicate duplicate email email email downloading Firewall free plesk onyx mail problem mod_userdir old email downloads old emails one-time plesk password onyx hosting onyx password reset outlook outlook not sending email password password reset php mail php mailer php selector plesk plesk hosting plesk password reset plesk password retrieve plesk password retrieving windows selection php version server security virus webmail website security whm windows hosting wordpress

  Support

  My Support Tickets   Announcements   Knowledgebase   Downloads   Network Status   Open Ticket

Change /whm & /cpanel URLs Print

  • 8

You can change the /whm & /cpanel URLs by editing: /usr/local/apache/conf/httpd.conf

to edit that simply type the command: nano /usr/local/apache/conf/httpd.conf

look for these:

 

ScriptAliasMatch ^/?cpanel/?$ /usr/local/cpanel/cgi-sys/redirect.cgi

ScriptAliasMatch ^/?webmail/?$ /usr/local/cpanel/cgi-sys/wredirect.cgi

ScriptAliasMatch ^/?whm/?$ /usr/local/cpanel/cgi-sys/whmredirect.cgi

 

If you've changed the port for cPanel the /cpanel won't work. However you can change the Webmail or WHM names so you could end up with:

 

ScriptAliasMatch ^/?mailbox/?$ /usr/local/cpanel/cgi-sys/wredirect.cgi

ScriptAliasMatch ^/?admincp/?$ /usr/local/cpanel/cgi-sys/whmredirect.cgi

 

 

After changing them simply run the following commands:

 

/usr/local/cpanel/bin/apache_conf_distiller --update

/scripts/rebuildhttpdconf

/etc/init.d/httpd restart

Then WebMail will be available on yourdomain.com/mailbox and WHM will be available on yourdomain.com/admincp instead for our example.


Was this answer helpful?

Related Articles

Do you support GD & ImageMagick?   Yes, we do support GD & ImageMagick modules across all our servers. The module-binaries... How can I enable Mod-Rewrite Module? In order to enable Mod_Rewrite for your site you should create a text file called .htacccess in... How can I execute php code as .htm or .html files? In your .htaccess file insert this line of code:AddType application/x-httpd-php .html .htm... How can I login into cPanel / WHM / Webmail? You can login to cPanel by : http://cpanel.yourdomain.com http://yourdomain.com:2082... How do I auto-redirect my web pages? Redirects are used when you want to point a specific url or web page to another location. For...
« Back

  Tag Cloud

Advance Firewall apache APF BDF clamav cloudlinux cpanel cpanel mail cPanel/WHM duplicate duplicate email email email downloading Firewall free plesk onyx mail problem mod_userdir old email downloads old emails one-time plesk password onyx hosting onyx password reset outlook outlook not sending email password password reset php mail php mailer php selector plesk plesk hosting plesk password reset plesk password retrieve plesk password retrieving windows selection php version server security virus webmail website security whm windows hosting wordpress

  Support

  My Support Tickets   Announcements   Knowledgebase   Downloads   Network Status   Open Ticket

About Us

As one of the world’s leading web hosting providers, the team at PAMIR WEBHOST is confident in our ability to meet and exceed your individual hosting requirements. However, if as a customer, you’re unsatisfied with our ability to serve you, PAMIR WEBHOST offers an unconditional 15-day money-back guarantee on our shared hosting plans. You’ll have the option to cancel your account during the first 30 days of service, and receive a full refund of any collected service charges.

Read More

Support Center

  • Customer Portal
  • Support center
  • Knowledgebase
  • Announcements
  • Server Status

Products & Services

  • Shared Hosting
  • Reseller Hosting
  • VPS Server
  • Dedicated Server
  • Microsoft Office 365
  • SSL Certificate

Company

  • About Us
  • FAQ
  • Contact
  • Affiliate
  • Legal
  • We Accept:

Copyright © 2021 PAMIR WEBHOSTING LLC.. 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
Українська

Choose Currency

$ USD
AFN AFN

Generate Password

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