• 0

Wordpress question - deleted a file on ftp by accident


Question

Hey guys,

I made a website using wordpress recently. I have all the files of the template etc on my ftp

--

I made a mistake yesterday and deleted the index file so now I have nothing

when i type in the url

but as said i have all the php template files and all the other files on the ftp, just not the index.php

Is there any way to recover this? it's just the index i deleted but have everything else on the ftp - it was done on wordpress

Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

http://wordpress.org/latest.zip -- If you delete any core files (root, wp-includes, wp-admin) then you can always obtain them again by downloading WordPress.

However, the index.php contains just this:

<?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');
?>

Link to comment
Share on other sites

This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.