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.

Is it possible to redirect http, but not webmail?

Discussion in 'General Discussion' started by FnF, Jun 20, 2015.

  1. FnF

    FnF Member

    Joined:
    Jul 21, 2007
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    I have a client that I have set up a mail only account for one of thier domains. They would like to use the webmail on this domain but have any http traffic forwarded or redirected to their main site which is a different domain.
    Is there a way for me to do this? I'm unable to pin it down.
    Thanks much
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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

    You should be able to create a custom mod_rewrite rules in the .htaccess file within their public_html directory to redirect any traffic to their domain name to the URL of your preference. Webmail operates on ports 2095/2096 (or through proxy subdomains) so the custom rewrite rules should not interface with webmail access.

    Thank you.
     
  3. FnF

    FnF Member

    Joined:
    Jul 21, 2007
    Messages:
    11
    Likes Received:
    0
    Trophy Points:
    1
    Thanks Michael
     
Loading...

Share This Page