Redirect RSS feeds

Discuss practical ways rearrange URLs using mod_rewrite.

Redirect RSS feeds

Postby mwe » Wed Apr 30, 2008 5:55 am

We are in the process of migrating our RSS feeds over to Feedburner. All of the Feedburner profiles have been established, but since our feeds have been around for over a year already, we need to establish some redirects for the old URLs.

Each pair in the list below contains the original file location (on our old server) and the new Feedburner URL.

Would it be possible to setup a 301 redirect for each of these to point to the new Feedburner URL?

Example:
From here:
[http://www.mydomain.com] <-- Old domain name address
/podcasts/2005/channels/news_opinion/news.xml

To here:
http://feeds.mynewsite.com/owner/ofGU

Can this even be done with mod_rewrite? There server doesn't allow for .htaccess use, so that is not an option. Whatever the solution would be, it has to be handled through a virthost.conf file structure.

Here is the actual list of hard files to new locations that need to be converted:

Code: Select all

/podcasts/2005/channels/news_opinion/news.xml
http://feeds.mydomain.com/mydomain/ofGU

/podcasts/2005/channels/entertainment/Entertainment.xml
http://feeds.mydomain.com/Entertainment-mydomaincom

/podcasts/2005/channels/podrods/podrods.xml
http://feeds.mydomain.com/mydomain/WXgM

/podcasts/2005/channels/community/community.xml
http://feeds.mydomain.com/Community-mydomaincom

/podcasts/2005/channels/sports/sports.xml
http://feeds.mydomain.com/Sports-mydomaincom

/rssfeed/most_popular.xml
http://feeds.mydomain.com/mydomaincomMostPopularStories

/rssfeed/news.xml
http://feeds.mydomain.com/mydomaincomNews

/rssfeed/business.xml
http://feeds.mydomain.com/mydomaincomBusiness

/rssfeed/georgia.xml
http://feeds.mydomain.com/mydomaincomGeorgiaNews

/rssfeed/sports.xml
http://feeds.mydomain.com/mydomaincomSports

/rssfeed/sportscolumnists.xml
http://feeds.mydomain.com/mydomaincomSportsColumnists

/rssfeed/colfsu.xml
http://feeds.mydomain.com/mydomaincomFsuFootball

/rssfeed/coluf.xml
http://feeds.mydomain.com/mydomaincomUfFootball

/rssfeed/coluga.xml
http://feeds.mydomain.com/mydomaincomUgaFootball

/rssfeed/highschool.xml
http://feeds.mydomain.com/mydomaincomPrepSports

/rssfeed/spgolf.xml
http://feeds.mydomain.com/mydomaincomGolfNews

/rssfeed/spoutdoors.xml
http://feeds.mydomain.com/mydomaincomOutdoorsNews

/rssfeed/spsuns.xml
http://feeds.mydomain.com/mydomaincommydomainSuns

/rssfeed/spcudas.xml
http://feeds.mydomain.com/mydomaincommydomainBarracudas

/rssfeed/collegebasketball.xml
http://feeds.mydomain.com/mydomaincomCollegeBasketball

/rssfeed/neweathersbee.xml
http://feeds.mydomain.com/mydomaincomFirstCoastChronicles

/rssfeed/opinion.xml
http://feeds.mydomain.com/mydomaincomOpinion

/rssfeed/opinioncols.xml
http://feeds.mydomain.com/mydomaincomOpinionColumnists

/rssfeed/lifestyles.xml
http://feeds.mydomain.com/mydomaincomLifestyles

/rssfeed/entcolumnists.xml
http://feeds.mydomain.com/mydomaincomEntertainmentColumnists

/rssfeed/movies.xml
http://feeds.mydomain.com/mydomaincomMovies

/rssfeed/wheels.xml
http://feeds.mydomain.com/mydomaincomWheels

/rssfeed/webwatch.xml
http://feeds.mydomain.com/mydomaincomWebWatch

/rssfeed/traffic.xml
http://feeds.mydomain.com/mydomaincomTraffic
mwe
 
Posts: 21
Joined: Fri Aug 10, 2007 7:12 am
Location: North Augusta, SC USA

Postby richardk » Thu May 01, 2008 1:17 pm

You can use Redirect (or mod_rewrite, but you don't need to use mod_rewrite for this) in the virthost.conf file. There's probably a <VirtualHost> for your domain which you should put the redirects in
Code: Select all
Redirect 301 /podcasts/2005/channels/news_opinion/news.xml http://feeds.mydomain.com/mydomain/ofGU
Redirect 301 /podcasts/2005/channels/entertainment/Entertainment.xml http://feeds.mydomain.com/Entertainment-mydomaincom
# etc.
richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am

Postby mwe » Tue May 06, 2008 4:56 am

richardk wrote:You can use Redirect (or mod_rewrite, but you don't need to use mod_rewrite for this) in the virthost.conf file. There's probably a <VirtualHost> for your domain which you should put the redirects in
Code: Select all
Redirect 301 /podcasts/2005/channels/news_opinion/news.xml http://feeds.mydomain.com/mydomain/ofGU
Redirect 301 /podcasts/2005/channels/entertainment/Entertainment.xml http://feeds.mydomain.com/Entertainment-mydomaincom
# etc.


There is a misunderstanding, so I will clarify.

The old RSS feed points to:

http://www.mysite.com/rssfeed/most_popular.xml

And they want it to point to:

http://feeds.mydomain.com/mydomain/WXgM

Neither site is actually running from this Apache server as all it handles is redirects in its virthost.conf file.

-- Michael
mwe
 
Posts: 21
Joined: Fri Aug 10, 2007 7:12 am
Location: North Augusta, SC USA

Postby richardk » Wed May 07, 2008 2:42 pm

I still don't get it. What is the URL in the link/user's address bar? Is it a visible redirect or an internal/hidden one? Is it all on the same server?
richardk
 
Posts: 8800
Joined: Wed Dec 21, 2005 7:50 am


Return to Friendly URLs with Mod_Rewrite

Who is online

Users browsing this forum: No registered users and 106 guests

cron