ramone_kalsaw Posted February 9, 2006 Share Posted February 9, 2006 (edited) My website currently uses a Front Page-created "index.htm" file for the homepage. I'm now using Expression Engine and want to make my default homepage an Expression Engine "index.php" file. I tried deleting "index.htm" thinking that when 'www.my_domain.com' was called, the server would automatically serve up "index.php," but instead a directory listing of all my FrontPage-created .htm files came up. Question: What do I need to do to get the server to serve up my Expression Engine "index.php" instead of the FrontPage-created "Index.htm"? Thanks. P.S. After searching around the EE site I found this entry: If you have installed EE in the root directory, and tell Apache to load index.php by default, EE will happily call the default templategroup with the default template when accessing domain.com. Considering this, how do I "tell Apache to load 'index.php' by default"? Edited February 9, 2006 by ramone_kalsaw Quote Link to comment Share on other sites More sharing options...
wampthing Posted February 10, 2006 Share Posted February 10, 2006 Add something like this into your .htaccess file for that folder >DirectoryIndex index.php I think that should work for you... Quote Link to comment Share on other sites More sharing options...
wampthing Posted February 10, 2006 Share Posted February 10, 2006 if you to assign a default order, you could do this >DirectoryIndex index.php index.cgi index.html index.htm fishfarts.html That way, the server will look for the first file type first then the second all the way down to fishfarts.htm. (am I the only one with that file name?) Quote Link to comment Share on other sites More sharing options...
ramone_kalsaw Posted February 10, 2006 Author Share Posted February 10, 2006 if you to assign a default order, you could do this >DirectoryIndex index.php index.cgi index.html index.htm fishfarts.html That way, the server will look for the first file type first then the second all the way down to fishfarts.htm. (am I the only one with that file name?) I've never used .htaccess before, so do I just add the code you suggested, or is there anything else that needs to go into the file? Thanks. Quote Link to comment Share on other sites More sharing options...
TCH-Bruce Posted February 10, 2006 Share Posted February 10, 2006 If you are no longer using FrontPage uninstall the extensions in your cPanel. If Expression Engine created entries in the .htaccess file they will be lost so back it up first (or rename it). Then just removing the index.htm or index.html file will do it for you. If you are still using FrontPage then the DirectoryIndex should do it for you. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.