View Full Version : What is the file name of the default homepage?
hello
09-30-2005, 01:39 AM
What is the file name of the default homepage? I put my index.html file into the public_html directory, yet a page that isn't even on the server comes up as the default when I view my page. What's going on?
hello
09-30-2005, 01:57 AM
HELP!! I HAVE NO CLUE WHAT TO DO AND WAS LOOKING
FORWARD TO PUTTING UP MY SITE!!!! :confused: :mad: :mad:!
What's the title of the page you DO get? Make sure there isn't an "index.php" file there also.
hello
09-30-2005, 07:09 PM
IT'S INDEX.HTML! :mad: :mad:
hello
09-30-2005, 07:32 PM
SOLVED! There was another index file. Thanks! One more question, what is the URL of a gif image if it is in another directory inside public_html (the other directory is called images and the image is a GIF). If I should put images in a different folder, please tell me what this folder is. What about PHP? Where should I put PHP files?
Put them wherever you want...
Cojawfee
09-30-2005, 08:15 PM
Treat public_html as your root directory. When you connect to your site via the domain, it goes directly here. It is usually a good idea to make a folder named images or pictures for the images of your site, and it also makes it easier when you are looking for an image and you can just go to a whole folder filled with images to look through. If you are going to be using PHP, you replace your index.htm with index.php (delete the .htm so you don't accidentally get that when you go to your domain).
It doesn't matter where you put anything, you can make up your own system of putting things places. But, you have to have a file called index in public_html in order to do anything with your site.
And for the image url. It would be www.yourdomain.com/image.gif or www.yourdomain.com/pictures/image.gif. Note that "www.yourdomain.com" takes the place of public_html when accessing the image.
So to recap:
I suggest making a new folder in public_html called "images" or "pictures" to keep image files (you can do this with any other file types like videos, or sounds).
It doesn't matter where you put your files, as long as they are in public_html and you know how to access them properly with html.
When accessing files: On FTP it is public_html/folder/file.extenstion whereas, with HTTP, it is www.yourdomain.com/folder/file.extension.