Skip to main content

Webmail redirecting to server domain - how to stay on site's domain?

Comments

12 comments

  • cPanelLauren
    Here's what I use for this: Choose the closest matched domain for which that the system has a valid certificate when redirecting from non-SSL to SSL URLs. Formerly known as "Always redirect to SSL/TLS" [QUOTE]When a user visits /cpanel, /webmail, /whm, or visits other URLs that redirect to a cPanel service, the system will redirect to an SSL URL for the closest matched domain that the system has a valid certificate. If you disable this option, the system will redirect to the equivalent URL that they visited based on the original request made via HTTPS or HTTP. This option also controls how the system will redirect unencrypted cPanel, Webmail, WHM, and DAV requests to the best matched certificate for the domain when "Require SSL" is enabled.?When enabled, it will redirect closest matched domain that the system has a valid certificate for. When it is disabled, it will simply redirect equivalent HTTPS URL.
    • Toggled to Off
    Non-SSL redirect destination [QUOTE]When visiting /cpanel or /whm or /webmail WITHOUT SSL, you can choose to redirect to:
    • "Origin Domain Name"
    SSL redirect destination [QUOTE] When visiting /cpanel or /whm or /webmail with SSL, you can choose to redirect to:

    • SSL Certificate Name default
    0
  • ksechrist
    Thank you Lauren! I didn't want to just toggle these settings around without advice, and you've been very helpful to me before so I will try this tonight!
    0
  • cPanelLauren
    Let me know how it works out and if you have any issues!
    0
  • ksechrist
    I tried it, but it's still redirecting to the server address instead of the domain. Did I need to restart something else besides the daemons it automatically restarted when I saved this change?
    0
  • cPanelLauren
    Hi @ksechrist Can you tell me what you're doing for the following: 1. What is the URL you're visiting exactly? (replace any actual domain names) 2. Are you visiting over http or https? 3. Is there an SSL installed on the domain? 4. Have you cleared your browser's cache? I can confirm that those exact settings work for me when going to webmail/webdisk etc., I do have an SSL on my domain, as well as the hostname. I'm also visiting
    0
  • ksechrist
    THANK YOU LAUREN! I'm not there yet, but clearing cache got me closer. The problems now: www.... webmail.mydomain.tld looks like it WILL work now if I pay more to cover the webmail subdomain. I was really hoping to make this work with www.mydomain.tld/webmail so it would use the existing ssl. Do you think this is possible without a lot of trouble? Thank you again - I really appreciate your help!
    0
  • cPanelLauren
    Hello, I'm glad it's getting there but I am a bit perplexed how you have the same settings but the behavior is different. With: [QUOTE]SSL redirect destination When visiting /cpanel or /whm or /webmail with SSL, you can choose to redirect to:
    Set to SSL Certificate and [QUOTE]
    Choose the closest matched domain for which that the system has a valid certificate when redirecting from non-SSL to SSL URLs. Formerly known as "Always redirect to SSL/TLS" When a user visits /cpanel, /webmail, /whm, or visits other URLs that redirect to a cPanel service, the system will redirect to an SSL URL for the closest matched domain that the system has a valid certificate. If you disable this option, the system will redirect to the equivalent URL that they visited based on the original request made via HTTPS or HTTP. This option also controls how the system will redirect unencrypted cPanel, Webmail, WHM, and DAV requests to the best matched certificate for the domain when "Require SSL" is enabled.?When enabled, it will redirect closest matched domain that the system has a valid certificate for. When it is disabled, it will simply redirect equivalent HTTPS URL.

    Set to Off there shouldn't be anything keeping it from performing the proper redirection. I don't have any relevant redirects added in the .htaccess but you may want to check your own - I do have Forced HTTPS enabled in cPanel>>Domains>>Domains though.
    0
  • ksechrist
    Those are the settings I have. The only redirects in my htaccess (other than directing old pages to new pages) is to redirect non-www to www, and http to https. But for some reason,
    0
  • cPanelLauren
    Those are the settings I have. The only redirects in my htaccess (other than directing old pages to new pages) is to redirect non-www to www, and http to https. But for some reason,
    You can give it a shot, it should retain the domain exactly how entered.
    0
  • ksechrist
    Origin Domain Name didn't work for
    0

Please sign in to leave a comment.