Forums

WordPress redirect problem (1 post)

  1. manicer
    Member
    Posted 1 year ago #

    I am running wordpress as my news blog. But I just want the posts to land on the index file of a particular product site. Here is the problem. I am using this code to feed the posts into my site:

    <?php
    // Include WordPress
    define('WP_USE_THEMES', false);
    require('../news/wp-load.php');
    query_posts('showposts=1');
    ?>

    <?php while (have_posts()): the_post(); ?>
    <h2><?php the_title(); ?></h2>
    <?php the_excerpt(); ?>
    <p>">Read more...</p>
    <?php endwhile; ?>

    This index file is at redfeathergames.com/gygax/index.php but every time I load it in a browser it takes me to redfeathergames.com/news which is where the wordpress blog is.

    I first thought it was the canonical redirect so I disabled it but it still redirects me. Any suggestions?

Topic Closed

This topic has been closed to new replies.

About this Topic