The MU forums have moved to WordPress.org

Redirect issue when including 'wp-blog-header.php' (2 posts)

  1. tbhot3ww
    Member
    Posted 14 years ago #

    Hi guys!

    I have a wordpress mu integrated with my website. If I access to my site without www all works fine but when I try to access with www all links on my website redirects to the main blog of my wordpress mu.

    I put this code in order to gain access to wordpress mu API:

    <?php
      /* Short and sweet */
      define('WP_USE_THEMES', false);
      require_once('../blog/wp-blog-header.php');
      ?>

    The website url is: http://sixservix.com
    The wordpress mu is on: http://sixservix.com/blog
    The error is on: http://www.sixservix.com

    I have Windows Server 2003 with Apache 2.2, PHP 5.2.9 and mysql 5.0.51a on port 3308.

    Thanks in advance!

  2. andrea_r
    Moderator
    Posted 14 years ago #

    It's because you don't have the server set up to answer for www requests.

    and wpmu was installed without the WWW, so of course it will strip it.

About this Topic

  • Started 14 years ago by tbhot3ww
  • Latest reply from andrea_r