• Resolved jfblanc

    (@jfblanc)


    Hello!
    I’m having a very weird case, I transferred my WordPress site from one hosting to another.
    Apparently, everything works perfectly fine, the website is fully uploaded and running ok. The problem is that when I enter the main URL it won’t show the homepage, you can check here: https://www.westroot.com
    Versus if you enter through any other page, you can see the full website e.g. https://www.westroot.com/about

    I contacted the hosting company (Godaddy) to check if there were any compatibility issues but it looks that there are any, the only solutions they gave were to delete the .htaccess file or rename it, but this didn’t work. They said there is a problem with the index.php file so it won’t load the homepage.

    This is the content of my index.php file:
    <?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( dirname( __FILE__ ) . ‘/wp-blog-header.php’ );

    Any help? ?? I’m very desperate….
    Thank you!!

Viewing 7 replies - 1 through 7 (of 7 total)
  • Moderator James Huff

    (@macmanx)

    Try deactivating all plugins. If that resolves the issue, reactivate each one individually until you find the cause.

    If that does not resolve the issue, try switching to the Twenty Sixteen theme to rule-out a theme-specific issue (theme functions can interfere like plugins).

    Make sure siteurl and home in your options table are same.

    Thread Starter jfblanc

    (@jfblanc)

    Thank you so much for your help!
    I tried deactivating the plugins and changing the theme and that didn’t work…
    I also checked and siteurl/home are both https://westroot.com ??

    Any other ideas I should try?
    Thank you so much!

    Moderator James Huff

    (@macmanx)

    Try downloading WordPress again, access your server via SFTP or FTP, or a file manager in your hosting account’s control panel, and delete then replace your copies of everything on the server except the wp-config.php file and the /wp-content/ directory with fresh copies from the download. This will effectively replace all of your core files without damaging your content and settings.

    Some uploaders tend to be unreliable when overwriting files, so don’t forget to delete the original files before replacing them.

    If that makes no difference, we may be able to help, but we’ll need a detailed error message. Despite the appearance, a blank page typically means that PHP is crashing, and a more detailed error is usually recorded in the server error log. If you have access to your server error log, visit/load the blank page again, note the date and time of this visit, then immediately check your server error log for any errors that occurred during that time period. If you don’t have access to your server error log, ask your hosting provider to look for you.

    Thread Starter jfblanc

    (@jfblanc)

    Thank you for your help! I just found out that my domain was being redirected to an empty default page.

    Moderator James Huff

    (@macmanx)

    You’re welcome!

    I had the same problem, but the solution for me was an unnecessary line in .htaccess with the PHP version

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘index.php problem’ is closed to new replies.