Jump to content

Replacing Index Pages


ramone_kalsaw

Recommended Posts

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 by ramone_kalsaw
Link to comment
Share on other sites

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?)

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...