I'm on a shared hosting plan and I've applied an SSL certificate to the entire domain. I want to disable access to mydomain.com/webmail or atleast reroute it to https mydomain.com/webmail. Attempting a redirect such as this in cPanel says that it'll be an indefinite loop. I've tried multiple other ways to write redirect rules - http webmail traffic to https ://mydomainwebserver.com:2096 (server's mail server), but none of those work. Is there a way to achieve this without access to WHM as I have a shared hosting?
As a stopgap measure I've deleted mail.mydomain.com CNAME record and created a subdomain with the same name. Redirect rule from mail.mydomain.com to https ://mydomain.com/webmail works fine.
As a stopgap measure I've deleted mail.mydomain.com CNAME record and created a subdomain with the same name. Redirect rule from mail.mydomain.com to https ://mydomain.com/webmail works fine.
Last edited by a moderator: