Automatic Index Welcome Page.

zigga

Member
Dec 23, 2002
5
0
151
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.
 

zigga

Member
Dec 23, 2002
5
0
151
How do you think I can make it so that it prints the correct domain name on the index file?
 

mooony

Well-Known Member
Nov 9, 2002
82
0
156
Just put a php index page there that will lookup thte domain name.

Ronald
 

zigga

Member
Dec 23, 2002
5
0
151
So &cpanel print=&DOMAIN&& will work if the file is a PHP file?

Let me know, thanks :)
 

TheVoice

Well-Known Member
Feb 7, 2002
105
0
316
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.