Title: index.php
Last modified: August 19, 2016

---

# index.php

 *  [philg8](https://wordpress.org/support/users/philg8/)
 * (@philg8)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/indexphp-5/)
 * I accidently deleted the index.php file at some time during installation, so 
   while all settings are in place. the site itself can’t be viewed. I am not a 
   computer whiz, so can anyone help me with directions to get the file back into
   the root directory.

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

 *  [Chris_K](https://wordpress.org/support/users/handysolo/)
 * (@handysolo)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/indexphp-5/#post-1322453)
 * I can think of two options right off the top of my head:
 * 1) Restore it from your backups
 * Anticipating your response on that, here’s the next 😉
 * 2) Download the WordPress package [from here](http://wordpress.org/download/).
   Extract the index.php from it and upload it to your site.
 *  [jesseali](https://wordpress.org/support/users/jesseali/)
 * (@jesseali)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/indexphp-5/#post-1322726)
 * Hi, I back up every week… but I no matter how many times I restore, still no 
   index.php file. Is there something I am missing?
 *  [Kailash](https://wordpress.org/support/users/kailash1/)
 * (@kailash1)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/indexphp-5/#post-1322727)
 * [@jesseali](https://wordpress.org/support/users/jesseali/)
    I didn’t get your
   question exactly but if your wordpress’ index.php file is missing, you can download
   wordpress package from wordpress.org and then just upload missing index.php file.
 * Kailash
 *  [henkholland](https://wordpress.org/support/users/henkholland/)
 * (@henkholland)
 * [16 years, 5 months ago](https://wordpress.org/support/topic/indexphp-5/#post-1322728)
 * And this is all there is in the `index.php’ file in the root:
 *     ```
       <?php
       /**
        * Front to the WordPress application. This file doesn't do anything, but loads
        * wp-blog-header.php which does and tells WordPress to load the theme.
        *
        * @package WordPress
        */
   
       /**
        * Tells WordPress to load the WordPress theme and output it.
        *
        * @var bool
        */
       define('WP_USE_THEMES', true);
   
       /** Loads the WordPress Environment and Template */
       require('./wp-blog-header.php');
       ?>
       ```
   
 * So drop it in notepad, ftp it to your site and name it `index.php`

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

The topic ‘index.php’ is closed to new replies.

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 4 replies
 * 5 participants
 * Last reply from: [henkholland](https://wordpress.org/support/users/henkholland/)
 * Last activity: [16 years, 5 months ago](https://wordpress.org/support/topic/indexphp-5/#post-1322728)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
