Redirect feeds to a single format

Open your .htaccess file (located at the root of your WordPress install) and add the following code. Don’t forget to modify http://example.com/feed/
by your feed url, and backup your .htaccess file before editing it!

<IfModule mod_alias.c>
 RedirectMatch 301 /feed/(atom|rdf|rss|rss2)/?$ http://example.com/feed/
 RedirectMatch 301 /comments/feed/(atom|rdf|rss|rss2)/?$ http://example.com/comments/feed/
</IfModule>

Credits goes to Digging into WordPress for the cool tip!

Looking for WordPress hosting? Try WP Web Host. Prices starts at $5/month and you can try it for free!

Redirect feeds to a single format

Leave a Reply

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