Thread Starter
Farms
(@farms)
Or here I guess: http://meat.net/2005/11/php-debugging-tip/
Fantastic stuff, thanks for the quick hep!
Thread Starter
Farms
(@farms)
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.
Thread Starter
Farms
(@farms)
I thought about maybe trying to hack this but with limited success: http://orderedlist.com/articles/wordpress-feedburner-plugin/