Ready to get started?Download WordPress


.htaccess mod_rewrite for category rss feeds (2 posts)

  1. alvintan
    Posted 4 years ago #


    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 :)

  2. alvintan
    Posted 4 years ago #

    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]

Topic Closed

This topic has been closed to new replies.

About this Topic