Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

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:
    12
    Likes Received:
    0
    Trophy Points:
    51
    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 Technical Support Community Manager
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    44,802
    Likes Received:
    1,896
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
    Twitter:
    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.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. FnF

    FnF Member

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

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice