How to put links on a index file inside a cpanel-skel folder

Discussion in 'HTML & Website Design' started by MarketTNT, Jan 23, 2012.

  1. #1
    My hosting reseller account has a cpanel-skel folder that contains the public_html folder that will appear in new accounts.
    My new accounts will only be allowed to create subdomains.
    I want to create a default index.html with a link to the new users cpanel and other default folders.
    How do I do this when I do not know what their subdomain name will be???

    any ideas???
     
    Solved! View solution.
    MarketTNT, Jan 23, 2012 IP
  2. #2
    I am not a programmer, but i am guessing that you can have an index.php page that creates links with dynamic content.
    Put the links within a loop that generates the new links based on the database entries.
    <?PHP if(dataentry){
    <a href="[subdomain].yoursite.com">[subdomain].yoursite.com</a>
    } ?>

    You'll have to adjust your .htaccess page to point to index.php and not index.html.
     
    xira, Jan 24, 2012 IP
  3. MarketTNT

    MarketTNT Active Member

    Messages:
    86
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    91
    #3
    I think your right in that it will require a coded solution for dynamic links. I'll move this to the progamming thread. Thanks.
     
    MarketTNT, Jan 24, 2012 IP