I've given up on changing index.php. I've reverted to the default. Here's the current situation:
http://www.bioneural.net/feed/ will redirect correctly to FeedBurner (http://feeds.feedburner.com/Bioneuralnet).
I want http://www.bioneural.net/9rules/feed/ to re-direct to a custom feed that excludes posts in category 16.
I added the following to my .htaccess file:
# Test to show bookmarks only
RewriteBase /
RewriteRule ^9rules/feed/?$ /index.php?&feed=rss2&cat=16 [R,L]
This will correctly show cat 16 (bookmarks) only for http://www.bioneural.net/9rules/feed/
# Create a feed for 9rules.com excluding bookmarks
RewriteBase /
RewriteRule ^9rules/feed/?$ /index.php?&feed=rss2&cat=-16 [R,L]
This should show posts in all categories *except* in cat 16.
However, it results in this:
WordPress database error: [Not unique table/alias: 'wp_post2cat']
SELECT DISTINCT * FROM wp_posts LEFT JOIN wp_post2cat ON (wp_posts.ID = wp_post2cat.post_id) LEFT JOIN wp_post2cat ON (wp_posts.ID = wp_post2cat.post_id) WHERE 1=1 AND (category_id != 16) AND post_date_gmt <= '2006-07-20 10:10:59' AND (post_status = "publish" OR post_author = 1 AND post_status != 'draft' AND post_status != 'static') AND post_status != "attachment" GROUP BY wp_posts.ID ORDER BY post_date DESC LIMIT 0, 10
Warning: Cannot modify header information - headers already sent by (output started at /home/.ashea/bioneural/bioneural.net/wp-includes/wp-db.php:102) in /home/.ashea/bioneural/bioneural.net/wp-rss2.php on line 8
http://www.bioneural.net stuff worth sharing Tue, 18 Jul 2006 21:09:04 +0000 http://wordpress.org/?v=2.0.3 en
Anyone?