I am in the process of creating a wordpress website, and I just have one issue left – RSS feeds.
Currently, the website has a .htaccess
file blocking access to /category/*
pages. It was part of a requirement that the site is not obviously WordPress, and /category
is a decent indicator of that.
Each category is fronted by a page, which displays the category content – so /category/news
becomes /news
.
However, RSS feeds always seem to point to /category/xxx/feed
– is there a way to remove this /category/
part? So people could view the RSS feed at http://example.com/news/feed
?
I’ve tried fiddling around with the .htaccess
file, but it’s the one area of building a web application I’m not 100% sure on. Every search has returned with results of how to point a feed to Feedburner instead, which is not what I am looking to do at all.
After some thought – this can be achieved with some creative abuse of existing feeds:
Something like this:
I found (in my opinion) the best and easiest way to do this, and thought I should leave it as an answer in case anybody stumbles upon this thread.
I downloaded and installed the WP No Category Base plugin and that did exactly what I needed.
Unfortunately, I never got around to trying the other answers (had to move on to a more urgent project), so I can’t clarify if any of them work.
Updated Link: No Category Base (WPML)
You do know that you can change the tag and category slug prefixes on the permalinks settings page, right?
So if it bothers you to have the “category” in “/category/news”, but accepts having “/cat/news”, you can change that there.