icon Get the most out of Surmunity, read our tips here! Need an interesting blog to read? You've got to read the Surpass Blog! | Welcome! Please register to access all of our features.
Old August 30th, 2004, 8:37 PM   #1 (permalink)
Registered User
Fresh Surpasser
 
Joined in Aug 2004
9 posts
Gave thanks: 0
Thanked 0 times
making index.php like an index.html file

i've never used a linux server, so if this seems like a stupid easy question, by all means, let me have it. in some of the windows admin programs its easy to set up all of the index files you want, like index.php, index.htm, or default.html...etc., but in cpanel, i have no clue how to do this
danbeghin is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old August 30th, 2004, 8:41 PM   #2 (permalink)
H
after g, before i
Resident.
 
H's Avatar
 
Joined in Jul 2004
Hosted on Gojira
8,032 posts
Gave thanks: 48
Thanked 129 times
If you have index.php in a folder it will automatically display that page. Be careful with having index.htm and index.html files in that directory too.. Not sure the order, but quite often it opens index.htm first.

As to how to change it.. Not sure at all, never see an option to do it. Maybe an Apache setting?
H is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old August 30th, 2004, 10:13 PM   #3 (permalink)
Surpass Fan
On a golden path...
 
DiscJockey's Avatar
 
Joined in Jul 2004
Hosted on Pass20
420 posts
Gave thanks: 1
Thanked 1 Time in 1 Post
to make .php files work has .html files;

-log into your cpanel
-go to MIME Types
- add the following;
mime type=application/x-httpd-php
Extention(s)= html
__________________
:P
DiscJockey is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old August 30th, 2004, 10:21 PM   #4 (permalink)
Registered User
Fresh Surpasser
 
Joined in Aug 2004
9 posts
Gave thanks: 0
Thanked 0 times
thanks
danbeghin is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old August 31st, 2004, 7:05 AM   #5 (permalink)
Surpass God
On a golden path...
 
Isfahan's Avatar
 
Joined in Aug 2004
Lives in Leeds, UK
Hosted on Ultra
359 posts
Gave thanks: 0
Thanked 0 times
Quote:
Originally Posted by Haugland
Not sure the order, but quite often it opens index.htm first.
The order goes like this:

Index.html
index.php
index.htm
__________________
Server: Ultra
Website: ShucksVille.com / RelentlessImpact.com
----------------------------------------------------------------------
ShucksVille: Never following footsteps, creating our own!
Relentless.Impact: Taking media to the next level!


:surpass:
Isfahan is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old September 5th, 2004, 3:36 PM   #6 (permalink)
Registered User
Comfy Contributor
 
Joined in Aug 2004
Lives in Britain
Hosted on Ultra
121 posts
Gave thanks: 0
Thanked 0 times
dude i like that order

so you can have your forum (or like ipbdynamic lite for ipb)
and your website at the same place :P

welll i know what im saying (kinda)

is there any way to change this ??
yahooadam is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old November 8th, 2004, 8:11 PM   #7 (permalink)
Yabadabadoo
Super #1
 
Geoff's Avatar
 
Joined in Nov 2004
Lives in B.C., Canada
Hosted on Dedicated
1,013 posts
Gave thanks: 7
Thanked 28 times
Quote:
Originally Posted by yahooadam
dude i like that order

so you can have your forum (or like ipbdynamic lite for ipb)
and your website at the same place :P

welll i know what im saying (kinda)

is there any way to change this ??
Well if you want to change the default documents you could use an .htaccess to define the <DirectoryIndex> directive I believe it is

so on one line of the .htaccess in the directory you want to modify, put something like

DirectoryIndex index.php index.asp index.cgi index.htm index.html

and it will look for those files in the order they are written, so index.php would be tried first, and index.html would be tried last
Geoff is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old November 9th, 2004, 5:16 PM   #8 (permalink)
Registered User
Comfy Contributor
 
Joined in Aug 2004
Lives in Britain
Hosted on Ultra
121 posts
Gave thanks: 0
Thanked 0 times
ah kool
thx
yahooadam is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On