Jump to content
Sign in to follow this  
TorabRamin

cPanel Redirection issue

Recommended Posts

I'm running a resell hosting.
I have added a cPanel server to my WHMCS. I have put my specific IP address and hostname there. 

example:-
Hostname:- cpanle.domain.com
IP: 123.123.123

2030199474_Screenshot2019-12-25at7_53_43PM.thumb.png.9224120bc90275d62eac12844dec9c4c.png

But when a user/client tried to login cPanel/webmail from clientarea it redirects to my main hosting provider, not to my hostname domain URL. ( server.provider.com not to my cpanel.domain.com )

523810335_Screenshot2019-12-25at8_04_11PM.thumb.png.b46c5310f0851d3b78e4a65d89255dd7.png

 

**My concern is I don't want to reveal my provider domain address to my clients. I want to show my hosting company domain only.

 

Note:- last time I have to fix this issue by simply doing tricks that putting my hostname in IP Address filed but in new WHMCS  I'm not able to put any text on IP address field. ( maybe it was validation bug in the previous WHMCS but in the new version, they fixed it)

Share this post


Link to post
Share on other sites

if you change those links with a hook, would that bypass the redirection that you're seeing ?

Share this post


Link to post
Share on other sites

Last time I didn't try this but it's worked now. Thank you @brian!

 

 

On 3/28/2019 at 6:57 PM, brian! said:

thanks! 🙂

in that first link I gave you, there was another hook that creates a login form, and if your WHMCS contains the username/password to their service, then that can be used to login directly to their cPanel...

AXEm3yP.png

... though i'd suggest changing http to https and adding 1 to the ports uses for cPanel/Webmail (2083 & 2096)...

that second link I gave you does contain an updated version of the above hook that doesn't need username/password for the cPanel link, but it uses the default URL of clientarea.php?action=productdetails&id=xxx&dosinglesignon=1 for the cPanel link - which is no good for you as that's the URL you're having problems with.

if you can't get that second hook to suit your needs, then as @penguin suggests, you might be better off changing your WHM (not WHMCS) redirection settings - you may need to contact your host for help with that.

Share this post


Link to post
Share on other sites

I have the same problem, did one of you achieve the automatic cpanel login after achieving the redirection ????

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated