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!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Modify Addon Domain Creation Script

Discussion in 'General Discussion' started by g-force, Jun 27, 2009.

  1. g-force

    g-force Member

    Joined:
    Jun 24, 2006
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    151
    Hi,

    I would like to know how can I modify the Addon Domain Creation script to create a default .htaccess in the folder with certain rules.

    Thanks.
     
  2. PlatinumServerM

    PlatinumServerM Well-Known Member
    PartnerNOC

    Joined:
    Jul 10, 2005
    Messages:
    400
    Likes Received:
    3
    Trophy Points:
    168
    Location:
    New Jersey, USA
    cPanel Access Level:
    Root Administrator
  3. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,277
    Likes Received:
    9
    Trophy Points:
    313
    Location:
    Houston, TX
    cPanel Access Level:
    Root Administrator
    Actually, postwwwacct only works for new accounts - not addon domains.

    You can create a function hook for AddnDomain::addaddondomain API2 function by reading the instructions at /usr/local/cpanel/hooks/README or online at:

    FunctionHooks < AllDocumentation < TWiki
     
Loading...

Share This Page