How To –Change WordPress RSS URL with .htaccess

I wanted to change the RSS URL on my wordpress blog,but couldn’t quite find out how. Some themes I’ve used allowed you to insert a custom RSS URL,but the latest one I installed didn’t have that option. I looked around on the net,and found out that you can change your .htaccess file (located on the sites root folder). This change makes it more permanent,and you won’t have to change it in every theme you use or try.


Perishable Press is the source of this .htaccess modification. I wanted to use a Feedburner feed,so I had to insert this code in the beginning of my .htaccess file. PS! Remember to backup your original .htaccess file before editing it!

# temp redirect wordpress feeds to feedburner
<IfModule mod_rewrite.c>
RewriteEngine on
RewriteCond %{HTTP_USER_AGENT} !FeedBurner [NC]
RewriteCond %{HTTP_USER_AGENT} !FeedValidator [NC]
RewriteRule ^feed/?([_0-9a-z-]+)?/?$ http://feeds.feedburner.com/Hofvind-romcom [R=302,NC,L]
</IfModule>

If you want to add this code to your own .htaccess file make sure to edit the bold URL “http://feeds.feedburner.com/Hofvind-romcom”to match your own Feedburner URL. It is important that this block of code is in the beginning of .htaccess,or else it might not work.

Enjoy!

Leave a Reply

  

  

  

You can use these HTML tags

<a href=""title=""><abbr title=""><acronym title=""><b><blockquote cite=""><cite><code><del datetime=""><em><i><q cite=""><strike><strong>