Title: Developing while index.html and index.php both exist
Last modified: August 19, 2016

---

# Developing while index.html and index.php both exist

 *  [cathycracks](https://wordpress.org/support/users/cathycracks/)
 * (@cathycracks)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/developing-while-indexhtml-and-indexphp-both-exist/)
 * I know this might be a total htaccess question but I haven’t been able to find
   any answers on this.
 * I have my site up with the static page: [http://kliklogik.com](http://kliklogik.com)
   
   The file is index.html
 * I installed wordpress in the same directory and supposedly wordpress has index.
   php
 * However, when I go to [http://kliklogik.com/index.php](http://kliklogik.com/index.php)
   it goes to [http://kliklogik.com/](http://kliklogik.com/) (not even index.html)
 * I am doing this because I would like to roll out the blog feature first before
   I integrate the whole site in wordpress.
 * Here’s what it says in my .htaccess:
 *     ```
       DirectoryIndex index.html index.php
       # BEGIN WordPress
       <IfModule mod_rewrite.c>
       RewriteEngine On
       RewriteBase /
       RewriteCond %{REQUEST_FILENAME} !-f
       RewriteCond %{REQUEST_FILENAME} !-d
       RewriteRule . /index.php [L]
       </IfModule>
   
       # END WordPress
       ```
   
 * Can anyone help?
 * I am wondering if it’s an internal wordpress setting to always take out the “
   index.php”?
 * Please help.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  [MichaelH](https://wordpress.org/support/users/michaelh/)
 * (@michaelh)
 * [16 years, 9 months ago](https://wordpress.org/support/topic/developing-while-indexhtml-and-indexphp-both-exist/#post-1199838)
 * I don’t believe you can have an index.php and index.html in the same folder and
   expect it to work.
 * Why not install WordPress in a folder of web-root, say blog, then when you are
   ready to go live, delete the index.html, and to make WordPress available at [http://mydomain.com](http://mydomain.com)
   just change in Settings->General, the Blog address (URL) to [http://mydomain.com](http://mydomain.com)
   and put this index.php file in your web-root folder (it is the same folder that
   contains the blog folder)
 *     ```
       <?php
       /* Short and sweet */
       define('WP_USE_THEMES', true);
       require('./blog/wp-blog-header.php');
       ?>
       ```
   
 * Then update your permalinks in Settings->Permalinks.
 *  [yerg55](https://wordpress.org/support/users/yerg55/)
 * (@yerg55)
 * [16 years, 7 months ago](https://wordpress.org/support/topic/developing-while-indexhtml-and-indexphp-both-exist/#post-1200237)
 * “Normally” placing DirectoryIndex index.html in the .htaccess file overcomes 
   this issue and you can use domain.com/index.php to access the CMS/Blog and domain.
   com goes the the place holder.
 * This is an issue with WP which doesn’t apply to other code. Most disconcerting

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Developing while index.html and index.php both exist’ is closed to new
replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 2 replies
 * 3 participants
 * Last reply from: [yerg55](https://wordpress.org/support/users/yerg55/)
 * Last activity: [16 years, 7 months ago](https://wordpress.org/support/topic/developing-while-indexhtml-and-indexphp-both-exist/#post-1200237)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
