• 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)
  • 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. Extract the index.php from it and upload it to your site.

    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?

    @jesseali
    I didn’t get your question exactly but if your wordpress’ index.php file is missing, you can download wordpress package from ww.wp.xz.cn and then just upload missing index.php file.

    Kailash

    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.