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!

Server wide redirects issue.

Discussion in 'General Discussion' started by Misiek, Oct 5, 2015.

  1. Misiek

    Misiek Well-Known Member

    Joined:
    Feb 23, 2004
    Messages:
    105
    Likes Received:
    0
    Trophy Points:
    166
    Dear All,
    One of my client asked for a redirection of domian.com/webmail becuse many people for a few years now use this address.

    I tried to correct the problem by user virtualhost
    I created a file
    /usr/local/apache/conf/userdata/std/2_2/user/domain.com/webmail.conf
    In this file I entered :
    Code:
    ScriptAlias /webmail /home/user/public_html/
    ScriptAliasMatch ^/?webmail(/.*|/?)$ /home/user/
    After ensuring its ok and restarting apache nothing changed.
    Can anybody give a hint why ? The changing of global redirect is impossible.
    Regards,
     
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

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