Webmail redirecting to server domain - how to stay on site's domain?
I guess I don't understand Tweak Settings > Redirection, because to me, it looks like it should be doing this already :
I want this:
www . domain1.com/webmail to stay on domain1.com
but instead, it's redirecting to www . serverdomain.com:2096
I have purchased SSLs for my domains, but have been using Cpanel certs for email, whm, etc. - I accidentally let the Cpanel cert expire, but when I clicked Reset Certificate, it issued a self-issued certificate instead, which I don't want. So I figure if I can keep the user on my main domains, it will use the purchased ssl certs.
Here's the Tweak Settings > Redirection:
Choose closest matched domain... ON
Non-ssl redirect destination... Origin domain name
SSL redirect destination... SSL certificate name
It wouldn't surprise me if I'm completely misunderstanding something... *sigh*
-
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
- "Origin Domain Name"
- SSL Certificate Name default
0 -
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 -
Let me know how it works out and if you have any issues! 0 -
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 -
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 -
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 -
Hi @ksechrist this should work as well if you want to go to
0 -
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 -
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
Please sign in to leave a comment.
Comments
12 comments