Redirecting /webmail to a HTML file
We would like to redirect the /webmail URL for a specific cPanel user account to a HTML file (e.g. /public_html/webmail.html).
I have read through some of the documentation on how to edit the VirtualHost files, however we are running CloudLinux so some of the paths do not seem to exist on our server.
Can anybody assist me with redirecting /webmail?
-
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 -
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 -
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 -
Can anyone assist? 0
Please sign in to leave a comment.
Comments
4 comments