Forum Replies Created

Viewing 1 replies (of 1 total)
  • Has anyone addressed redirecting old TXP links to new WP ones.
    The script above works well for me butI try to keep around my TXP install in a different directory than my WP one — so any legacy links continue to work – but one problem is old RSS links will get the old, wrong, stale, RSS feed from Textpattern.

    If you update the top level index.php in the Textpattern tree with this code then it’ll redirect to WP. The 2 lines with Location:… have to change to refer to the URLs of your WP install.


    $atom = $_GET[ “atom�];
    if ( $atom == 1)
    {
    header( “Location: http://www.searchmorph.com/wp/feed/atom/“);
    exit( 0);
    }
    $rss = $_GET[ “rss�];
    if ( $rss == 1)
    {
    header( “Location: http://www.searchmorph.com/wp/feed/rss/“);
    exit( 0);
    }

    I wrote this up here:


    http://www.tropo.com/dave/blog/2005/06/07/when-moving-from-textpattern-to-wordpress-dont-forget-to-redirect-your-rss-feeds/

Viewing 1 replies (of 1 total)