# index.html, index.php ?

**URL:** <https://forums.realmacsoftware.com/t/index-html-index-php/29734>\
**Category:** RapidWeaver Classic\
**Created:** [November 15, 2019, 2:03am UTC](https://forums.realmacsoftware.com/t/index-html-index-php/29734 "2019-11-15T02:03:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rockhacker](https://avatars.discourse-cdn.com/v4/letter/r/ee7513/32.png) [@Rockhacker](https://forums.realmacsoftware.com/u/Rockhacker)\
**Post date:** [November 15, 2019, 2:03am UTC](https://forums.realmacsoftware.com/t/index-html-index-php/29734/1 "2019-11-15T02:03:15Z")

</div>

I received the following message :-

RapidWeaver noticed that you have the following files on your server: index.html, and index.php

Having multiple index files can causes issues when loading your website. We recommend using an FTP application to remove redundant index files.

My question is - which are the redundant files ?

---

<div class="post-metadata">

**Author:** ![Aaron](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/aaron/32/12210_2.png) [@Aaron](https://forums.realmacsoftware.com/u/Aaron)\
**Post date:** [November 15, 2019, 2:04am UTC](https://forums.realmacsoftware.com/t/index-html-index-php/29734/2 "2019-11-15T02:04:46Z")

</div>

Hey Keith! Welcome to the RW community! 🙂

This means there are 2 index/page files for your website. We recommend deleting one since your server will randomly choose one over the other, and that means 2 different versions of your site can be shown over the other.

The 2 recommended course of actions are:  
a) Republish all files by going to File \> Republish All Files  
b) Log onto your server and delete the oldest index file

---

<div class="post-metadata">

**Author:** ![swilliam](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/swilliam/32/14799_2.png) [@swilliam](https://forums.realmacsoftware.com/u/swilliam)\
**Post date:** [November 15, 2019, 2:05am UTC](https://forums.realmacsoftware.com/t/index-html-index-php/29734/3 "2019-11-15T02:05:32Z")

</div>

More than likely you need to remove the index.html  
You probably added a stack that needs php which created index.php

---

<div class="post-metadata">

**Author:** ![instacks](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/instacks/32/23339_2.png) [@instacks](https://forums.realmacsoftware.com/u/instacks)\
**Post date:** [November 15, 2019, 9:20am UTC](https://forums.realmacsoftware.com/t/index-html-index-php/29734/4 "2019-11-15T09:20:26Z")

</div>

> [@Aaron](#):
>
> since your server will randomly choose one over the other

Most web servers are configured to serve the .html file (if available) first.

---

<div class="post-metadata">

**Author:** ![manofdogz](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/manofdogz/32/26314_2.png) [@manofdogz](https://forums.realmacsoftware.com/u/manofdogz)\
**Post date:** [November 15, 2019, 10:18am UTC](https://forums.realmacsoftware.com/t/index-html-index-php/29734/5 "2019-11-15T10:18:43Z")

</div>

Key to this is that RW publishing is, in a sense, non-destructive. So if you publish a page, then later change the page/folder name and republish - both the old and the new will be on the server. Not a big deal for folders but it is for index files.

The issue you have normally happens because you have an html page and at some stage add something that needs php such as a contact form or widget. The page index will automatically be changed from .html to .php but because publishing is non destructive, you end up with both index pages.

---

<div class="post-metadata">

**Author:** ![system](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/system/32/25301_2.png) [@system](https://forums.realmacsoftware.com/u/system)\
**Post date:** [December 15, 2019, 8:18pm UTC](https://forums.realmacsoftware.com/t/index-html-index-php/29734/6 "2019-12-15T20:18:50Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
