Integrate RSS rewrite with feedburner

The GYM Sitemaps & RSS module for phpBB. Sitemaps and RSS feeds for Google Yahoo! and MSN Live, support, add ons etc ...

Moderator: Moderators

Integrate RSS rewrite with feedburner

Postby RaithK » Thu Aug 26, 2010 9:15 am

Hello I'm trying to put adsense into my feeds but to do this I need to use Feedburner. How do I modify this rule in order to have the forum point to my feedburner account every time RSS is accessed.

Code: Select all
RewriteRule ^rss(/(news)+)?(/(digest)+)?(/(short|long)+)?/?$ /gymrss.php?channels&$2&$4&$6 [QSA,L,NC]


This is the code Google suggested I use, but it isn't compatible with GYM RSS, how do I change it?

Code: Select all
RewriteCond %{HTTP_USER_AGENT} !FeedBurner
RewriteRule ^index\.xml$ http://feeds.feedburner.com/ComunitateaStarWarsRomania-Noutati [R,L]
RaithK
 
Posts: 2
Joined: Thu Aug 26, 2010 9:08 am

Advertisement

Re: Integrate RSS rewrite with feedburner

Postby RaithK » Fri Aug 27, 2010 12:03 pm

I figured it out myself.

All you have to do is to slightly modify google's code like so.

Code: Select all
RewriteRule ^rss/digest/([a-z]+)\.xml.gz$
instead of
Code: Select all
RewriteRule ^index\.xml$
.
So the modified google code that you should insert after
Code: Select all
RewriteRule ^rss(/(news)+)?(/(digest)+)?(/(short|long)+)?/?$ /gymrss.php?channels&$2&$4&$6 [QSA,L,NC
in your .htaccess code is the following:

Code: Select all
RewriteCond %{HTTP_USER_AGENT} !FeedBurner
RewriteRule ^rss/digest/([a-z]+)\.xml.gz$ http://feeds.feedburner.com/YOURSITENAME [R,L]

For a working demo you can check: http://forum.theforce.ro/
RaithK
 
Posts: 2
Joined: Thu Aug 26, 2010 9:08 am

Re: Integrate RSS rewrite with feedburner

Postby yaashul » Wed Jul 10, 2013 4:44 pm

But this code does not work on forum module. I mean forum rss pages are not redirecting.
yaashul
PR1
PR1
 
Posts: 159
Joined: Wed Aug 29, 2007 1:21 am


Return to GYM Sitemaps & RSS

 


  • Related topics
    Replies
    Views
    Last post

Who is online

Users browsing this forum: No registered users and 2 guests


 
cron