WordPress.org

Support

Support » How-To and Troubleshooting » .htaccess mod_rewrite for category rss feeds

.htaccess mod_rewrite for category rss feeds

  • alvintan

    @alvintan

    Hello,

    I’m trying to redirect the category RSS feeds.

    Here is how I currently access the category URL: /past/category/categoryname/feed/rss

    Would like to redirect it to /feed/categoryname instead.

    Any idea how can I use mod_rewrite to achieve this? Tried a couple of codes but none worked.

    Thanks 🙂

Viewing 1 replies (of 1 total)
  • alvintan

    @alvintan

    Ok, here’s what I’ve done but it doesn’t seems to work:

    <IfModule mod_rewrite.c>
    	Options +FollowSymlinks
    	RewriteEngine On
    	RewriteRule ^feed/([a-zA-Z0-9_-]+)$ http://localhost/past/category/$1/feed/rss [NC]
    </IfModule>
Viewing 1 replies (of 1 total)
  • The topic ‘.htaccess mod_rewrite for category rss feeds’ is closed to new replies.