The MU forums have moved to WordPress.org

sorry for the double post. site bug did it. :-/ (1 post)

  1. wclark
    Member
    Posted 14 years ago #

    Hi there,

    I have WPMU installed on my existing domain, mydomain.com

    I have a main blog at blogs.mydomain.com

    And have several subblogs at

    blogs.mydomain.com/site1
    blogs.mydomain.com/site2

    The sites come up at site1.mydomain.com and site2.mydomain.com
    I get to their blogs at blogs.mydomain.com/site1 and blogs.mydomain.com/site2

    The sites and blogs seem to work correctly.

    I want to add a code block to my existing index page for site1 that displays the latest 3 blog posts. Now starts my problem. That gets re-directed to the main blog page: blogs.mydomain.com/

    So I created a simple php page testblog.php to test. It also redirects to blogs.mydomain.com/.

    testblog.php contains:
    <?php>
    define('WP_USE_THEMES', false);
    require('/home/wordpress-mu/htdocs/wp-blog-header.php');
    ?>
    <?php if(have_posts() ) : while (have_posts()) : the_post(); ?>
    " rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?>
    <?php endwhile; else: ?>
    <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
    <?php endif; ?>

    When I go to site1.mydomain.com/testblog.php I get redirected to blogs.mydomain.com/

    I expect it to show me the posts for site1. They do exist. If I go to blogs.mydomain.com/site1 then I see the blog posts.

    Can anyone help? I hope this is a simple/stupid fix. :-)

    best regards,
    Bill

About this Topic

  • Started 14 years ago by wclark