Title: Index.php file
Last modified: August 18, 2016

---

# Index.php file

 *  Resolved [mjasra](https://wordpress.org/support/users/mjasra/)
 * (@mjasra)
 * [19 years, 2 months ago](https://wordpress.org/support/topic/indexphp-file/)
 * Everything during the installation went great (version 2.1) however the index.
   php didn’t get created. Can I borrow someone’s index.php file? Or is there another
   way to resolve this issue?
 * Thanks

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

 *  Moderator [Samuel Wood (Otto)](https://wordpress.org/support/users/otto42/)
 * (@otto42)
 * WordPress.org Admin
 * [19 years, 2 months ago](https://wordpress.org/support/topic/indexphp-file/#post-518237)
 * It doesn’t get “created”. It’s in the ZIP file. Or the .gz file if you used that
   one.
 *  [vince2006](https://wordpress.org/support/users/vince2006/)
 * (@vince2006)
 * [19 years, 2 months ago](https://wordpress.org/support/topic/indexphp-file/#post-518240)
 * Are you talking about index.php in the root of WP or in your theme?
 * Either way I am assuming you are using FTP?
 * If it is the index.php file from the root of your WP as in [http://www.mysite.com/wordpress/](http://www.mysite.com/wordpress/)
   then simply transfer index.php from your original 2.1 download or create it by
   opening a text editor and copy and paste this to it
    ` <?php /* Short and sweet*/
   define('WP_USE_THEMES', true); require('./wp-blog-header.php'); ?>
 * Then name the file index.php and load that to the root of your WP install.
 * If it is the index file from your THEME, on the server side be sure to navigate
   to /wp-content/themes/your-theme-name/ and upload the corresponding index.php
   file from the theme’s directory on your computer.
 * Please keep in mind that these instructions take into consideration that you 
   didn’t have a modified index.php file to begin with.
 * Hope this helps!
 * Vince
 *  Thread Starter [mjasra](https://wordpress.org/support/users/mjasra/)
 * (@mjasra)
 * [19 years, 2 months ago](https://wordpress.org/support/topic/indexphp-file/#post-518241)
 * Thanks, Just got a copy with a fresh download.
 *  [grudum](https://wordpress.org/support/users/grudum/)
 * (@grudum)
 * [18 years, 3 months ago](https://wordpress.org/support/topic/indexphp-file/#post-518640)
 * I kind of have the same problem. I deleted the index file on the server and didnt
   make a copy.
 * You’re saying I can just load the original root index from the install download
   and the theme from the theme download and put it back on the server?
 * Does the theme go in the acutal named theme folder (ie. citynight) or just in
   the theme directory by itself?
 * did that make sence?

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

The topic ‘Index.php file’ is closed to new replies.

## Tags

 * [default](https://wordpress.org/support/topic-tag/default/)
 * [index.php](https://wordpress.org/support/topic-tag/index-php/)

 * In: [Installing WordPress](https://wordpress.org/support/forum/installation/)
 * 4 replies
 * 4 participants
 * Last reply from: [grudum](https://wordpress.org/support/users/grudum/)
 * Last activity: [18 years, 3 months ago](https://wordpress.org/support/topic/indexphp-file/#post-518640)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
