Skip to main content

Redirecting /webmail to a HTML file

Comments

4 comments

  • keat63
    I think I understand what your'e trying to do and I'm not sure that this is possible. You want the url www.yourdomain.com:2096) to redirect to
    0
  • cPRex Jurassic Moderator
    There is not a native feature to change the webmail redirect. The only way to perform that work would be to make manual edits to the Apache template files on the system that are outlined here: Could you try making those adjustments and then let us know how it goes?
    0
  • Hammo91
    Sorry for the delayed response. I have attempted to follow the links you have sent me, however the redirect is not working. I copied /var/cpanel/templates/apache2_4/ea4_main.default to /var/cpanel/templates/apache2_4/ea4_main.local and edited the following lines: ScriptAliasMatch ^/?webmail$ /usr/local/cpanel/htdocs/webmail.html ScriptAliasMatch ^/?webmail/ /usr/local/cpanel/htdocs/webmail.html
    The webmail.html file simply contains a meta refresh line which should redirect the user to a new URL. I then ran the following commands as per the other thread (one command did not work): /usr/local/cpanel/bin/apache_conf_distiller --update (THIS COMMAND DID NOT WORK) /usr/local/cpanel/bin/build_apache_conf /scripts/restartsrv_httpd Now when I navigate to https://.com/webmail, I receive a 500 Internal Server Error.
    0
  • Hammo91
    Can anyone assist?
    0

Please sign in to leave a comment.