WordPress not working on root index.php
-
Hi.
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.orgI 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 868I 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:
<?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/wp-blog-header.php’);
?>Hopefully someone can help me!
- The topic ‘WordPress not working on root index.php’ is closed to new replies.