WordPress.org

Ready to get started?Download WordPress

Forums

Fix feeds for Google (2 posts)

  1. intricateartist
    Member
    Posted 5 years ago #

    I've been checking my site stats and it appears that robots are coming to my site looking for an index.rdf file that doesn't exist. The wp-rdf is not picking up these hits for some reason and I've been digging around trying to find a fix, and found two things:

    1. Feed Redirector plugin that is not compatible with 2.6:

    <?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');
    ?>

    2. These core file changes, which obviously shouldn't be done since there will be upgrades overwriting the changes:
    Fix WordPress RSS Feeds

    I'm trying to find a fix either with a plugin or through .htaccess to fix this - but it would be great if it were fixed in the core files.

    Anyone have any fixes for this?

  2. intricateartist
    Member
    Posted 5 years ago #

    for future reference, under "discussion", check the remote publishing boxes Atom and XML-RPC boxes.

Topic Closed

This topic has been closed to new replies.

About this Topic