[resolved] WordPress not working on root index.php (4 posts)

  1. tysont09
    Posted 4 years ago #

    I am not for sure if this is the correct place to put this, but I need some help! I have wordpress set up in a sub-directory; however, I am trying to get it to show up on my main page. It works if I type in http://kimberleylocke.org, but it will not work when I go to http://www.kimberleylocke.org

    I get the following message:
    Warning: Cannot modify header information - headers already sent by (output started at /home/kimlocke/public_html/index.php:1) in /home/kimlocke/public_html/wp/wp-includes/pluggable.php on line 868

    I followed the directions that are on WordPress about giving it it's own directory, but I do not have a .htaccess file, so this is what I put in the root index.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 */

    Hopefully someone can help me!

  2. It sounds like you have unexpected whitespace (either a space or an entire line) on line 1 of index.php. See this for more info:


  3. tysont09
    Posted 4 years ago #

    That fixed it! Thanks!

  4. You're welcome!

Topic Closed

This topic has been closed to new replies.

About this Topic