WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] How to get rss feed of category when url ends in .shtml (2 posts)

  1. Donna Fontenot
    Member
    Posted 3 years ago #

    I know that the normal way to retrieve an RSS feed for a category is via this url structure:

    http://domain.tld/category/categoryname/feed/

    However, the url structure of the site categories aren't like this:

    http://domain.tld/category/categoryname/

    It is instead like this:

    http://domain.tld/category/categoryname.shtml

    So, doing this:

    http://domain.tld/category/categoryname.shtml/feed/

    doesn't work (or make sense).

    I also tried http://domain.tld/wp-rss2.php?cat=123 but that ends up just redirecting to the normal feedburner feed for the whole blog.

    Has anyone ever successfully found a way to show a category feed when the url structure ends in something other than a directory/ ?

    ---

    Oh, and before anyone asks, here's what the .htaccess looks like.

    # BEGIN WordPress

    <IfModule mod_rewrite.c>

    RewriteEngine On

    RewriteBase /news/

    RewriteRule ^index\.php$ - [L]

    RewriteCond %{REQUEST_FILENAME} !-f

    RewriteCond %{REQUEST_FILENAME} !-d

    RewriteRule . /news/index.php [L]

    </IfModule>

    # END WordPress

    And then, in the wp-admin, under Permalinks, the Category base is set to this:

    category/%category%.shtml

  2. Donna Fontenot
    Member
    Posted 3 years ago #

    Ok, I asked this same question over on Google Plus, and got the answer, so thought I'd share it here in case anyone ever needs to know. As strange as it looks, this works:

    http://www.domain.tld/category/categoryname.shtml/categoryname/feed/

Topic Closed

This topic has been closed to new replies.

About this Topic