Initial page
Posted by: fatbeetle
Posted on: 2008-03-24 00:27:00
I'm just getting my first website done on Dreamhost.
How do I make a page my "first" or "front" page, the one that opens when the website is logged onto.
Many thanks
Posted by: fatbeetle
Posted on: 2008-03-24 00:27:00
I'm just getting my first website done on Dreamhost.
How do I make a page my "first" or "front" page, the one that opens when the website is logged onto.
Many thanks
Posted by: sXi
Posted on: 2008-03-24 00:39:00
The simplest way is to name your 'homepage' index.html (or index.php if you're using php).
Posted by: rlparker
Posted on: 2008-03-24 00:43:00
In reply to:How do I make a page my "first" or "front" page, the one that opens when the website is logged onto.
Just name your page (the file, that is) any of the following:
"index.html index.shtml index.htm Index.html Index.htm Index.shtml default.htm Default.htm default.html Default.html default.shtml Default.shtml page1.html index.pl index.cgi index.php index.php3 index.phtml home.htm home.html home.shtml index.wml
As long as you name your "index" file any one of those things, it will work! "
from: http://wiki.dreamhost.com/KB_/_Sign_Up_/_Infrastructure_/_Software_/_Apache
--rlparker
Posted by: rlparker
Posted on: 2008-03-24 00:44:00
In reply to:The simplest way is to name your 'homepage' index.html (or index.php if you're using php).
he he he .. "What you said!" ![]()
--rlparker
Posted by: sdayman
Posted on: 2008-03-24 06:23:00
In reply to:he he he .. "What you said!"
Yes, but in fewer words. Sometimes I wonder if rlparker gets paid by the word. ![]()
-Scott
Posted by: rlparker
Posted on: 2008-03-24 11:13:00
In reply to:Yes, but in fewer words. Sometimes I wonder if rlparker gets paid by the word.
Heh .. I just try to be "thorough " ![]()
--rlparker
Posted by: silkrooster
Posted on: 2008-03-24 11:51:00
I didn't realize it supported the "default" filename by default. I thought it was index only unless you alter the htaccess file.
My website
Posted by: rlparker
Posted on: 2008-03-24 12:12:00
In reply to:I didn't realize it supported the "default" filename by default. I thought it was index only unless you alter the htaccess file.
Thanks for that! It's good to know that my "extra" verbiage is sometimes at least a little useful. ![]()
--rlparker
Posted by: fatbeetle
Posted on: 2008-03-24 16:26:00
Many thanks.
Posted by: maxhugen
Posted on: 2008-03-30 17:23:00
I've set up a new domain, and have uploaded a PHP project to it. It has a page called Index.php, but when I go to the website, its displaying a Directory listing instead.
In Dreamhost > Manage Domains, I've selected PHP 5.2.x
Is there something else that I need to do, for this Index.php page to display?
Posted by: rlparker
Posted on: 2008-03-30 17:38:00
That sounds like you have uploaded it to the wrong directory. Make sure you upload your file into one of your "yourdomain.tld" directories, *not* the directory you find yourself in when first connecting via FTP (which is your user directory).
Your "domain" directories (which is where your web pages are stored) is *inside* this user directory, so:
1) Log into your webserver using SFTP/FTP
2) Navigate into your "yourdomain.tld" directory
3)*then* upload your files
--rlparker
Posted by: sdayman
Posted on: 2008-03-30 17:40:00
I had posted about maybe the upper case "I" being the problem, but see it's in the "approved list." It's best to use all lower case though, even if that isn't the problem here.
-ScottEdited by sdayman on 03/30/08 05:42 PM (server time).
Posted by: maxhugen
Posted on: 2008-03-30 17:49:00
I have a directory named the same as my domain - which I presume is the 'root' directory for the domain - and the files are in that.
So if I go to the domain in a browser, I see a Directory listing, which includes the Index.php file. I can click on Index.php and display it...
Posted by: rlparker
Posted on: 2008-03-30 17:55:00
In reply to:I had posted about maybe the upper case "I" being the problem, but see it's in the "approved list."
Actually, I *think* your first post was accurate, and that it *might* be the problem. I can't find Index.php in the "approved" list in the wiki (http://wiki.dreamhost.com/KB_/_Sign_Up_/_Infrastructure_/_Software_/_Apache) , and a test I just did on one of my domain showed a directory listing that included the "Index.php", rather than displaying it.
Did you find it on a different list somewhere?
In reply to:It's best to use all lower case though, even if that isn't the problem here.
I agree completely!
--rlparker
Posted by: sdayman
Posted on: 2008-03-30 19:13:00
You read the list more closely than I. For non-HTML files, they're all lower case.
-Scott
Posted by: maxhugen
Posted on: 2008-03-30 20:14:00
Thanks guys, you're right, the problem was that Index.php has to be in lower case.
Just to be sure... should *all* my php pages be in lower case, or does this just apply to the index.php?
Posted by: rlparker
Posted on: 2008-03-30 20:33:00
In reply to:Just to be sure... should *all* my php pages be in lower case, or does this just apply to the index.php?
That is up to you - either way will work as long as your links to those pages are correct "case-wise".
That said, I agree with Scott that I think you are better off leaving all your filenames lower case. ![]()
--rlparker