Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Registered User
    Join Date
    Jun 2006
    Posts
    3

    Arrow Modify Addon Domain Creation Script

    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. #2
    cPanel Partner NOC cPanel Partner NOC Badge
    Join Date
    Jul 2005
    Location
    New Jersey, USA
    Posts
    397

    Default

    You can add the programming to the postwwwacct script to edit /home/username/public_html/.htaccess

  3. #3
    Technical Product Specialist cPanelDavidG's Avatar
    Join Date
    Nov 2006
    Location
    Houston, TX
    Posts
    10,718
    cPanel/Enkompass Access Level

    Root Administrator

    Default

    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

Similar Threads & Tags
Similar threads

  1. Addon domain date of creation
    By meashsoft in forum Feature Requests for cPanel/WHM
    Replies: 1
    Last Post: 01-31-2011, 12:45 AM
  2. addon domain creation problem
    By dusan in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 06-19-2009, 12:49 PM
  3. Run script on Domain/Sub-domain creation.
    By devonblzx in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 09-30-2008, 08:49 AM
  4. WHM/cPanel - Addon domain Problem, after account modify
    By Ancile in forum cPanel and WHM Discussions
    Replies: 13
    Last Post: 05-05-2006, 03:13 PM
  5. Script for sub-domain creation
    By 1rebelhost in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 02-05-2004, 09:29 PM
Tags for this Thread
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube