|
|
#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
|
|
|
|
|
|
#2 (permalink) |
|
after g, before i
Resident.
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? |
|
|
|
|
|
#3 (permalink) |
|
Surpass Fan
On a golden path...
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 |
|
|
|
|
|
#5 (permalink) | |
|
Surpass God
On a golden path...
Joined in Aug 2004
Lives in Leeds, UK
Hosted on Ultra
359 posts
Gave thanks: 0
Thanked 0 times
|
Quote:
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: |
|
|
|
|
|
|
#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 ?? |
|
|
|
|
|
#7 (permalink) | |
|
Yabadabadoo
Super #1
Joined in Nov 2004
Lives in B.C., Canada
Hosted on Dedicated
1,013 posts
Gave thanks: 7
Thanked 28 times
|
Quote:
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 |
|
|
|
|