Forums

Manipulating RSS feed URL (5 posts)

  1. Farms - WPMU DEV
    Member
    Posted 6 years ago #

    Hiya,

    Apologies if this has already been dealt with (can't find it) but I've got a friend who wants to move from Manila to WordPress but needs to keep his RSS feed URL the same:

    So the existing feed address is http://www.url.com/xml/rss.xml

    And that's what we'd want WP to publish the new RSS feed as.

    Any pointers / ideas? Help would be very very much appreciated!

    Cheers, James

  2. James
    Happiness Engineer
    Posted 6 years ago #

  3. Farms - WPMU DEV
    Member
    Posted 6 years ago #

    Or here I guess: http://meat.net/2005/11/php-debugging-tip/

    Fantastic stuff, thanks for the quick hep!

  4. Farms - WPMU DEV
    Member
    Posted 6 years ago #

    Hmmmm... looks like this isn't working for 2.+ and my rewrite skills are pretty shakey.

    Are there any alternatives?

    Or, could anyone help me with the code I'd need to get the default WP feed to point to http://www.url.com/xml/rss.xml using by editing the plugin below.

    <?php
    /*
    Plugin Name: Feed Director
    Plugin URI: http://boren.nu/
    Description: Rewrites common feed URIs used by other blogging platforms into WP style feed URIs.
    Version: 0.2
    Author: Ryan Boren
    Author URI: http://boren.nu/
    */

    // Replace the default mod_rewrite rules with the reduced set.
    function feed_dir_rewrite($wp_rewrite) {
    $feed_rules = array(
    'index.rdf' => 'index.php?feed=rdf',
    'index.xml' => 'index.php?feed=rss2',
    '(.+).xml' => 'index.php?feed=' . $wp_rewrite->preg_index(1)
    );

    $wp_rewrite->rules = $feed_rules + $wp_rewrite->rules;
    }

    // Hook in.
    add_filter('generate_rewrite_rules', 'feed_dir_rewrite');
    ?>

    It's for a fairly major Manila > WP (charitable :) export so any help would be *seriously* appraciated.

  5. Farms - WPMU DEV
    Member
    Posted 6 years ago #

    I thought about maybe trying to hack this but with limited success: http://orderedlist.com/articles/wordpress-feedburner-plugin/

Topic Closed

This topic has been closed to new replies.

About this Topic