Title: RewriteRule for RSS redirect?
Last modified: August 19, 2016

---

# RewriteRule for RSS redirect?

 *  [Opally](https://wordpress.org/support/users/opally/)
 * (@opally)
 * [18 years, 4 months ago](https://wordpress.org/support/topic/rewriterule-for-rss-redirect/)
 * I used to hand-code an RSS feed. Now I have WordPress, yay!
 * I got rid of my old feed, but now I see a lot of search errors from users/spiders
   not finding the old feed.
 * I’ve tried this RewriteRule in .htaccess, but it doesn’t seem to be working. 
   ck.xml still gets a file-not-found error.
 * `RewriteRule ^ck.xml$ /blog/?feed=rss2 [R=301,L]`
 * If I try RedirectMatch, the ? gets converted into URL encoding and fails:
 *     ```
       RedirectMatch permanent ^/CK/ck.xml$
       http://www.coreknowledge.org/blog/?feed=rss2
       ```
   
 * error page shows /blog/%3ffeed=rss2
 * (could that just be a character encoding issue on that shtml page?)
 * what’s funny is that the website error log does show the correct path to the 
   feed as a “file not found” when using the RedirectMatch method.
 * Ideas?

Viewing 1 replies (of 1 total)

 *  Thread Starter [Opally](https://wordpress.org/support/users/opally/)
 * (@opally)
 * [18 years, 4 months ago](https://wordpress.org/support/topic/rewriterule-for-rss-redirect/#post-675263)
 * Got the answer!! Posting, for future searchers:
 * `redirect 301 /CK/ck.xml http://www.coreknowledge.org/blog/?feed=rss2`

Viewing 1 replies (of 1 total)

The topic ‘RewriteRule for RSS redirect?’ is closed to new replies.

## Tags

 * [htaccess](https://wordpress.org/support/topic-tag/htaccess/)
 * [RSS](https://wordpress.org/support/topic-tag/rss/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 1 participant
 * Last reply from: [Opally](https://wordpress.org/support/users/opally/)
 * Last activity: [18 years, 4 months ago](https://wordpress.org/support/topic/rewriterule-for-rss-redirect/#post-675263)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
