Change Apache default index.html page to something else
Change Apache default index.html page to something else
Alright.....I have tried and tried. I want to make it so that the index.html file is NOT the default file that is presented when typing "www.mydomain.com". I have tried making a .htaccess file and putting "DirectoryIndex Default.htm" (Default.htm is the file I need to be default). I have tried editing the DirectoryIndex in httpd.conf ....I can't get it to work. What else is there for me to do?
Re: Change Apache default index.html page to something else
Figured it out, the .htaccess stuff doesn't work....instead just edit DirectoryIndex that is already included in httpd.conf so that it only has the file you want.
Re: Change Apache default index.html page to something else
You should edit (create if necessary) the files in /etc/httpd/conf.d instead of editing httpd.confaltiris wrote:Figured it out, the .htaccess stuff doesn't work....instead just edit DirectoryIndex that is already included in httpd.conf so that it only has the file you want.
Re: Change Apache default index.html page to something else
What file would I have to create? There don't seem to be any files already made to change DirectoryIndex.Whoever wrote:You should edit (create if necessary) the files in /etc/httpd/conf.d instead of editing httpd.confaltiris wrote:Figured it out, the .htaccess stuff doesn't work....instead just edit DirectoryIndex that is already included in httpd.conf so that it only has the file you want.