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.

Automatic Index Welcome Page.

Discussion in 'General Discussion' started by zigga, Jan 17, 2003.

  1. zigga

    zigga Member

    Joined:
    Dec 23, 2002
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Hey Guys,

    You guys know how it works. When an account is created, it automatically places an &index.html& file into the account with it saying &Welcome to Yourname.com, this site is under construction&.

    Right now, I have &postinfo.html& being placed into the public_html directory, how can I automatically have added &index.html& into that directory, so they don't see a directory list.

    Thanks.
     
  2. TheVoice

    TheVoice Well-Known Member

    Joined:
    Feb 7, 2002
    Messages:
    105
    Likes Received:
    0
    Trophy Points:
    16
    put it in public_html in /root so
    /root/public_html/index.html
     
  3. zigga

    zigga Member

    Joined:
    Dec 23, 2002
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    How do you think I can make it so that it prints the correct domain name on the index file?
     
  4. mooony

    mooony Well-Known Member

    Joined:
    Nov 9, 2002
    Messages:
    82
    Likes Received:
    0
    Trophy Points:
    6
    Just put a php index page there that will lookup thte domain name.

    Ronald
     
  5. zigga

    zigga Member

    Joined:
    Dec 23, 2002
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    So &cpanel print=&DOMAIN&& will work if the file is a PHP file?

    Let me know, thanks :)
     
  6. TheVoice

    TheVoice Well-Known Member

    Joined:
    Feb 7, 2002
    Messages:
    105
    Likes Received:
    0
    Trophy Points:
    16
    I don't think so. There are several php, perl, and javascript scripts which can tell you what domain is in the browser. Your best bet is to look at some javascript tutorial sites.
     
  7. zigga

    zigga Member

    Joined:
    Dec 23, 2002
    Messages:
    5
    Likes Received:
    0
    Trophy Points:
    1
    Okay thanks.
     
Loading...

Share This Page