Menu


How to redirect RSS feeds to Feedburner with .htaccess

If you want to redirect your standard RSS feed to a feedburner feed you can use the following code snippet


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


Please note that:

  1. you need to place this code into your .htaccess file
  2. you need to modify line 5 replacing yourfeedburnerfeed with your feed name





Apache categories


Apache Installation? | Apache Configuration | Apache Troubleshooting?

Back to > Software




Google Search

 
www.lacisoft.com
WWW
2009-2011 (c) Lacisoft.com