Change user or domain /cpanel /webmail /whm redirection
Hello,
I know that i can change the cPanel redirections from Tweak settings in server, but i want to know if is possible to change the redirections for a specific account/domain without move my actual server settings, (like .htaccess or something) let me explain:
I manage the website of a client, i have his website account in one server where he does not have access to cPanel, i have my client email in another server where he have access to cpanel to manage its email accounts.
If my client go to clientdomain.com/cpanel this redirects to hostname server where is hosted its website, however he does not have access to this cpanel account, if he wants to open webmail to check his mail accounts or cpanel to manage his email accounts he need to go to mail.clientdomain.com/cpanel or mail.clientdomain.com/webmail there is no problem at all with this but he contact us almost everyday saying that his credentials does not work, and this is because he use clientdomain.com/webmail instead of mail.clientdomain.com/webmail and we need to tell him over and over that he need to use mail.clientdomain.com... however, he do not get this and he thinks that we fix something or change something and that this is something that need to be fixed everytime he put a wrong url, clients, you know.
So the question: is possible to make a custom redirection for his domain /cpanel /webmail links in order to redirect them to the other server cpanel/webmail login page?
-
@tui Here you have a tutorial on how to remove the shortcuts (or remove cpanel and whm aliases) or change them for different ones, take into account that it is under your assolute responsibility what you do wrong or with your server. Disable URL Shortcuts to CPANEL, WHM, WEBMAIL on cPanel VPS 0 -
Hello @sysdop, thanks for your reply, i already checked the tutorial you point me, but this is at server level, what im looking for is something at account level, something less aggressive, is just for one single account/domain 0 -
Hello, Do you have root access to this system? If so, you can setup a custom virtual host include file for this specific domain name using the instructions at: Modify Apache Virtual Hosts with Include Files - EasyApache 4 - cPanel Documentation Within the custom include, you'd need to add a custom line like this: ScriptAlias /cpanel/ /home/username/public_html/
Thank you.0 -
Do you have root access to this system?
Hello, no i do not have root access to this account, any other way to do this without root access?0 -
Hello, no i do not have root access to this account, any other way to do this without root access?
You won't be able to override the aliases configured by default in the Apache configuration without root access. However, you could send a request to your web hosting provider to see if they can setup a custom virtual host entry for your domain name to disable the alias. Thank you.0
Please sign in to leave a comment.
Comments
5 comments