WordPress.org

Support

Support » How-To and Troubleshooting » [Resolved] Index page fails to load

[Resolved] Index page fails to load

  • vaibhavs
    Member

    @vaibhavs

    I have installed WP at example.com/blog. I was trying to put at page at root folder( example.com/index.php) so that when the site is opened this blog page starts.

    i have tried the following code but fails to load

    <?php
    /* Short and sweet */
    define(‘WP_USE_THEMES’, true);
    require(‘.blog/wp-blog-header.php’);
    ?>

    can any one help me out please…..

Viewing 1 replies (of 1 total)
  • vaibhavs
    Member

    @vaibhavs

    hey problem solved.
    the correct code is

    require(‘./blog/wp-blog-header.php’);

Viewing 1 replies (of 1 total)
  • The topic ‘[Resolved] Index page fails to load’ is closed to new replies.