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!

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
    You can add the programming to the postwwwacct script to edit /home/username/public_html/.htaccess
     
  3. cPanelDavidG

    cPanelDavidG Technical Product Specialist

    Joined:
    Nov 29, 2006
    Messages:
    11,216
    Likes Received:
    10
    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

  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