Deleted Index.php from Htdocs and now i have a white screen!

[ad_1]

Hello community!

I just finished a hobby website under a free host: InfinityFree and my theme is OnePress.

I wanted to make it public, so i changed the links in my Wp-config file to direct to my WPadmin page and the homepage, to my default domain.

After doing this, my domain started to redirect me to my host promotional landing page, saying:

“Everything is setup and ready to start… bla,bla,bla…”

So… I went to my Hcdocs to check the **index.php.**

And found out the origin of the message and i **deleted the file.**

Now when i access my domain, i just get a white screen.

I still have access to my admin area but i lost connection with the rest of the website.

I tried disconnecting all the plugins to test but nothing happens.

Anyone knows how to fix this?

I think it’s very simple and i’m starting to get frustrated…

Cheers

[ad_2]
3 Comments
  1. If you haven’t permanently deleted the index.php file, maybe you can try to restore it from a backup – I think that InfinityFree offers a daily backup service you can try to utilize: [https://forum.infinityfree.com/docs/](https://forum.infinityfree.com/docs/)

    If this doesn’t help – try reaching out to InfinityFree’s support team, as they might have access to server-side logs (or additional insights) specific to your hosting environment that could help you all to diagnose the issue.

  2. Sounds like a default file. Download WordPress and WordPress.Org and copy the index.php file from the zip folder.

  3. create an index.php file and pout the following in:

    <?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 __DIR__ . ‘/wp-blog-header.php’;

 

This site will teach you how to build a WordPress website for beginners. We will cover everything from installing WordPress to adding pages, posts, and images to your site. You will learn how to customize your site with themes and plugins, as well as how to market your site online.

Buy WordPress Transfer