cPanel redirects to hostname even with different settings set.

BnMcG

Registered
Feb 22, 2014
4
0
1
cPanel Access Level
Root Administrator
Hello all,

In WHM, I have the following settings set under "Tweak Settings > Redirection":

Always redirect to SSL: Off
Non-SSL Redirect Location: Origin Domain Name
SSL Redirect Destination: Origin Domain Name
Webmail works fine on non-SSL sites, and stays on the same domain name, just with port 2095 attached. However, on SSL websites cPanel redirects to the server's hostname, even after the option is set.

Any help would be appreciated.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,268
463
Hello :)

Here is a quote from our documentation that might help explain this behavior:

If a user accesses cPanel or WHM on an SSL/TLS port with the HTTP protocol, the web server will redirect the user to the HTTPS URL of the server's hostname. For example, if the server's hostname is host.examplehost.com, the URL hxxp://www.example.com:2083 will direct the user to hxxps://host.examplehost.com:2083.
If you are describing a different scenario, could you let us know an example URL that is used?

Thank you.