Forum Moderators: phranque

Message Too Old, No Replies

How to change default homepage of directory?

from say index.htm to myhome.htm or so..

         

wanderingmind

3:27 pm on Jul 8, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I am too new with Apache etc - so is changing the default homepage of a directory done in cPanel, or is it done through htaccess? Can anyone give a sample?

g1smd

3:54 pm on Jul 8, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



All that cPanel does is write the appropriate command into the .htaccess file for you.

So, both methods have the same effect.

wanderingmind

4:55 pm on Jul 8, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Thanks g1smd, didnt know that! Can you tell me how to do this in cpanel?

g1smd

6:42 pm on Jul 8, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



Somewhere in the hosting settings there will be either a drop-down list of filenames that you can pick off, or a simble box that you can type in the name that you need it to be, and then a submit or OK button to finish off.

jdMorgan

6:54 pm on Jul 8, 2007 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



If you wish to do this "manually" or if cPanel won't allow the flexibility you need, then the DirectoryIndex [httpd.apache.org] directive in Apache mod_dir is probably what you are looking for.

Jim