Quantcast
Channel: WordPress Experts
Viewing all articles
Browse latest Browse all 33

How to Redirect Feeds to a Single Format!

$
0
0

rssAtom, RDF, RSS, and RSS2 are the four different feeds which are provided by WordPress. But now, mostly people are only using the RSS2 format. So what about redirect feeds like Atom, RDF, RSS to RSS2? This is what I’m going to show you today.

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!

If you enjoyed this article, please consider sharing it!!

The post How to Redirect Feeds to a Single Format! appeared first on WordPress Experts.


Viewing all articles
Browse latest Browse all 33

Trending Articles