Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8152069
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T15:36:16+00:00 2026-06-06T15:36:16+00:00

I have a podcast feed set up in an XML file, and my current

  • 0

I have a podcast feed set up in an XML file, and my current subscribers subscribe to it using the direct file URL. (so http://website.com/feed.xml) I’ve been reading about how you can set up a COPY of that XML file with FeedBurner, force all future updates to be made on the FeedBurner file, and then just set up a redirect from the old XML url to the new FeedBurner URL in order to track subscribers (my main goal here).

http://underscorebleach.net/jotsheet/2005/07/feedburner-rss-migration

Unfortunately all of the tutorials I’ve seen on the subject assume I have an Apache server and I can modify the .htaccess file, so I’ve been fumbling with a way to get the same results on my MVC3 website.

So far I’ve tried 2 different ways:

Adding a url rewrite rule in the “system.webServer” section of my Web.config

<rewrite>
  <rules>
    <rule name="feedburner redirect" enabled="true" stopProcessing="true">
      <match url="feed.xml" ignoreCase="true" />
      <action type="Redirect" url="http://feeds.feedburner.com/NewFeed" appendQueryString="false" />
      <conditions logicalGrouping="MatchAll">
        <add input="{HTTP_USER_AGENT}" pattern="FeedBurner" negate="true" />
      </conditions>
    </rule>
  </rules>
</rewrite>

This isn’t working, and I’m also getting a warning in Visual Studio about how the “rewrite” element is not a valid child of “system.webServer”, so I’m not sure if this is the correct implementation, but this is how I’ve seen other examples written.

The other way I’ve tried is creating a route that will change the HTTP response to a 301 redirect to the new FeedBurner URL if a request for the old URL is made.

Url Routing class:

namespace Routes
{
    public class UrlRoute : RouteBase
    {
        public static void RerouteUrls()
        {
            var httpContext = HttpContext.Current;
            string redirectLocation = "";

            const string status = "301 Moved Permanently";

            string currentUrl = httpContext.Request.Url.ToString().ToLower();

            if (currentUrl.Contains("feed.xml"))
            {
                redirectLocation = "http://feeds.feedburner.com/NewFeed";
            }
            else
            {
                // None of the criteria was met; do not redirect user.
                return;
            }

            // Redirect page
            httpContext.Response.Clear();
            httpContext.Response.RedirectLocation = redirectLocation;
            httpContext.Response.StatusCode = 301;
            httpContext.Response.Status = status;
            httpContext.Response.End();
        }

        public override RouteData GetRouteData(HttpContextBase httpContext)
        {
            RerouteUrls();

            return null;
        }

        public override VirtualPathData GetVirtualPath(RequestContext requestContext,
                                                   RouteValueDictionary values)
        {
            return null;
        }
    }
}

In Global.asax:

public static void RegisterRoutes(RouteCollection routes)
{
    //...

    routes.Add(new Routes.UrlRoute());

    //...
}

protected void Application_Start()
{
    AreaRegistration.RegisterAllAreas();

    RegisterRoutes(RouteTable.Routes);

    Database.SetInitializer<EF4DataContext>(null);
}

But again, directly typing “feed.xml” into the address bar will show me old XML file, and the URL doesn’t change.

I’ve also seen a lot of suggestions about setting up a new controller action that redirects to a new action, but in this case it’s just a file, not a view action or a webpage, so I don’t think that applies here.

Any guidance on this subject would be much appreciated!

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T15:36:18+00:00Added an answer on June 6, 2026 at 3:36 pm

    Figured it out… I wasn’t interpreting the “conditions” section of the URL rewrite rule. It was limiting the rewrite rule ONLY to requests from FeedBurner, when I want ALL requests to the old feed file to be redirected. So I just had to remove that section. I’m left with just this:

    <rewrite>
        <rules>
            <rule name="feedburner redirect" enabled="true" stopProcessing="true">
                <match url="feed.xml" ignoreCase="true" />
                <action type="Redirect" url="http://feeds.feedburner.com/NewFeed" appendQueryString="false" />
            </rule>
        </rules>
    </rewrite>
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I created podcast rss feed - http://topdj-test.com.ua/podcast/audio-files/12/3/ And I set up <image> and <itunes:image>
In my feed generation code I have things like: XNamespace itunesNS = http://www.itunes.com/dtds/podcast-1.0.dtd; feed.ElementExtensions.Add(
Have a look at this picture alt text http://www.abbeylegal.com/downloads/2009-04-01/web%20part%20top%20line.jpg Does anyone know what css
I have an rss feed for my podcast and essentially what I am trying
I have a Podcast model with one attribute called :url . A typical :url
I have implemented audio playback using AVPlayer, playing a remote mp3 url. I want
I have a set of MP3 files for a podcast, and I'd like each
I'm currently using XPath to get some information from a podcast feed using Java
Edit: Translated I have a RSS-feed that i want to parse. It's a podcast
I have user generated podcasts, each with their own RSS feed. Is there a

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.