• Resolved halifaxacl

    (@halifaxacl)


    we moved to a wordpress website awhile back which replaced our old website. i decided to delete the files that were being used for the old website recently, now the wordpress website is not accessible. the files were located in the same directory as the wordpress directories (wp-admin, wp-includes, wp-content).

    when i try to access the website i get a page with this message instead:
    Directory Listing Denied
    This Virtual Directory does not allow contents to be listed.

    here’s website’s address:
    https://www.halifaxacl.com

    i tried restoring the index.html file that i deleted from the old site files which just loaded that page when i tried to access the website.

    so i’m not sure what i deleted but now i need to figure out what has happened and if i can restore what was deleted to restore the site’s access.

    any help is greatly appreciated.

    thanks!

Viewing 5 replies - 1 through 5 (of 5 total)
  • do you still have wordpress’ index.php file in there? or did you accidentally delete it?

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

    It would have this as the content. There are also many other WP files that should be in there. If you deleted them too, you can get them from a fresh download of WP. Just make sure to get your version. All version are here
    https://www.ads-software.com/download/release-archive/

    Thread Starter halifaxacl

    (@halifaxacl)

    no index.php file, just the directories that i mentioned remain.

    i’m guessing that deleting these files (index.php and other wordpress files) will not affect the actual wordpress page content (all of the pages that make up the website), correct?

    right, all your info is in your database. technically, you can safely delete everything from wordpress except the wp-content folder and keep your content.

    wp-content contains your images, theme, plugins, etc

    you will need to download a fresh Wp from the link I gave, and get all the files back. You are going to have one issue, did you delete the wp-config.php file?

    If so you will need to rebuild it. It contains the info to link to your database.

    https://codex.www.ads-software.com/Installing_WordPress#Famous_5-Minute_Install

    has some details about that file. You will need all your DB info (you can get that from your host) to rebuild your wp-config.php file

    Thread Starter halifaxacl

    (@halifaxacl)

    got it, thanks.. i discovered a backup copy of the wp-config.php file so i think i’m good to go now.

    thanks for your help!

    that’s great that you had that!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘old site files deleted, worpress site not accessible now’ is closed to new replies.