I am using WordPress more like a CMS than a blog as such, and I want to prevent certain categories from being displayed in the main feed. I can get around this by playing with the feed url and using for example “?feed=rss2&cat=-4&cat=-5” (which excludes categories 4 and 5). However, this looks “hackish” and ugly, I want the main feed to have the default WP rss url of “http://site.org/feed”.
mod_rewrite is alive and working, but I have a hard time figuring out regular expressions and how to do this.
Are there any .htaccess gurus out there that might know the magic code? I’ve tried the following, without success:
RewriteRule ^feed/?$ /?feed=rss2&cat=-4&cat=-5[R,L]
- The topic ‘Customizing feeds and feed urls’ is closed to new replies.