Apache Rewrite for changing my blog system

I’ve just switched to WordPress, and from my stats I can see a lot of sites still checking my old RSS feed. So I set up Apache with a rewrite rule to redirect to my new RSS feed. Works like a charm. No rocket science, but you might find it useful:

  RewriteEngine On
  RewriteBase /roller/
  RewriteRule ^rss/anders.*$ /wp/feed/rss2/ [R]

It’s set up in my main Apache config to intercept it before Tomcat picks it up, but you could also do it in a .htaccess file if you’re running another blogsystem.

Leave a Reply

Your email address will not be published. Required fields are marked *