The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Redirect domain.com/webmail to webmail.domain.com

Discussion in 'E-mail Discussions' started by kanbam, Feb 7, 2015.

  1. kanbam

    kanbam Member

    Joined:
    Aug 16, 2013
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
  2. madmanmachines

    madmanmachines Well-Known Member

    Joined:
    Nov 28, 2014
    Messages:
    94
    Likes Received:
    3
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
  3. kanbam

    kanbam Member

    Joined:
    Aug 16, 2013
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    You should reserve the irony for when it doesn't turn into unawareness.
    - Removed -

    I want to REDIRECT from domain.com/webmail to webmail.domain.com, I haven't found the answer in lmgtfy nor any of the searches I've made. Maybe there is and I am a little obtuse, thats why I am asking for help.
     
    #3 kanbam, Feb 8, 2015
    Last edited by a moderator: Jun 25, 2015
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,854
    Likes Received:
    676
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    The "ScriptAliasMatch" entries for /cpanel, /whm, and /webmail are removable and modifiable in the /usr/local/apache/conf/httpd.conf file. EX:

    Code:
    ScriptAliasMatch ^/?controlpanel/?$ /usr/local/cpanel/cgi-sys/redirect.cgi
    ScriptAliasMatch ^/?cpanel/?$ /usr/local/cpanel/cgi-sys/redirect.cgi
    ScriptAliasMatch ^/?kpanel/?$ /usr/local/cpanel/cgi-sys/redirect.cgi
    ScriptAliasMatch ^/?securecontrolpanel/?$ /usr/local/cpanel/cgi-sys/sredirect.cgi
    ScriptAliasMatch ^/?securecpanel/?$ /usr/local/cpanel/cgi-sys/sredirect.cgi
    ScriptAliasMatch ^/?securewhm/?$ /usr/local/cpanel/cgi-sys/swhmredirect.cgi
    ScriptAliasMatch ^/?webmail/?$ /usr/local/cpanel/cgi-sys/wredirect.cgi
    ScriptAliasMatch ^/?whm/?$ /usr/local/cpanel/cgi-sys/whmredirect.cgi
    Remember to make the modifications using the instructions at the URL below to ensure the changes are preserved:

    Custom Directives Outside of a VirtualHost Tag

    Thank you.
     
Loading...

Share This Page