• Let us say you have a really popular MT weblog with rss feeds working at abc.com/index.xml. You move onto WP and suddenly your feed url needs to change to abc.com/wp-rss2.php. This is going to be a headache for the readers for this blog.
    Any ideas on how to tackle this problem.
    Pankaj

Viewing 11 replies - 1 through 11 (of 11 total)
  • just use a .htaccess redirect to the new file for the old file. Worked like a champ for me.

    Thread Starter pankaj

    (@pankaj)

    could you please give me the rule, I am mod_rewrite illiterate

    what mod rewrite rules are you currently using?

    Thread Starter pankaj

    (@pankaj)

    the ones generated by
    /archives/%year%/%monthnum%/%day%/%postname%/
    Pankaj

    post one or a few that you use.

    Thread Starter pankaj

    (@pankaj)


    RewriteRule ^archives/author/?(.*) /blog/index.php?author_name=$1 [QSA]
    RewriteRule ^archives/([0-9]{4})?/?([0-9]{1,2})?/?([0-9]{1,2})?/?([_0-9a-z-]+)?/?([0-9]+)?/?$ /blog/index.php?year=$1&monthnum=$2&day=$3&name=$4&page=$5 [QSA]

    Thread Starter pankaj

    (@pankaj)

    Man you rock.
    Thanks a lot.
    Pankaj

    Sorry, slow on the respond… That’s basically what I use as well. I also have a few other’s for other files and most popular MT posts to redirect to the new locations and one to just redirect to the main page.
    RewriteEngine On
    RewriteBase /
    RewriteRule ^archives/category/(.*)/(feed|rdf|rss|rss2|atom)/?$ /wp-feed.php?category_name=$1&feed=$2 [QSA]
    RewriteRule ^archives/category/?(.*) /index.php?category_name=$1 [QSA]
    RewriteRule ^archives/author/(.*)/(feed|rdf|rss|rss2|atom)/?$ /wp-feed.php?author_name=$1&feed=$2 [QSA]
    RewriteRule ^archives/author/?(.*) /index.php?author_name=$1 [QSA]
    RewriteRule ^archives/([0-9]{4})?/?([0-9]{1,2})?/?([0-9]{1,2})?/?([0-9]+)?/?([0-9]+)?/?$ /index.php?year=$1&monthnum=$2&day=$3&p=$4&page=$5 [QSA]
    RewriteRule ^archives/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([0-9]+)/(feed|rdf|rss|rss2|atom)/?$ /wp-feed.php?year=$1&monthnum=$2&day=$3&p=$4&feed=$5 [QSA]
    RewriteRule ^archives/([0-9]{4})/([0-9]{1,2})/([0-9]{1,2})/([0-9]+)/trackback/?$ /wp-trackback.php?year=$1&monthnum=$2&day=$3&p=$4 [QSA]
    RewriteRule ^feed/?([_0-9a-z-]+)?/?$ /wp-feed.php?feed=$1 [QSA]
    RewriteRule ^comments/feed/?([_0-9a-z-]+)?/?$ /wp-feed.php?feed=$1&withcomments=1 [QSA]
    RewriteRule ^stats/author/(.*)?/page/?(.*)?/?$ /index.php?wp_stats=1&author=$1&page=$2 [QSA]
    RewriteRule ^stats/author/?(.*) /index.php?wp_stats=1&author=$1 [QSA]
    RewriteRule ^stats/ /index.php?wp_stats=1 [QSA]
    RewriteRule ^stats /index.php?wp_stats=1 [QSA]
    RewriteRule ^archives/000259.html /archives/2002/09/14/378/ [QSA]
    RewriteRule ^index.xml /feed/rss2/ [QSA]
    RewriteRule ^mt/ / [QSA]
    RewriteRule ^resume.shtml /archives/category/personal/resume/ [QSA]
    RewriteRule ^archives/?(.*).html / [QSA]
    RewriteRule ^cgi-bin/mt/mt-comments.cgi https://www.fbi.gov/ [QSA]

    The last one is my favorite… I got sick of the script kiddies spaming my comments on MT so I just redirected them to a fun little place.

    While this is an easy solution, it would be nice to have an option in the “Settings for RSS/RDF Feeds, Track/ping-backs” area to define where your feed is located. That way people could more easily move over to WordPress.

    To change the url of my feeds I simply renamed the wp-rss2.php file. As long as I uploaded it with the file name first and published something so the feed was working, it kept going perfectly after I renamed it. I haven’t tried this with 1.2 yet but it works fine on my 1.0.1 blog.

    Shouldn’t there be an option to change this from within the program? It seems like a necessary step for moving your site over from MT.

Viewing 11 replies - 1 through 11 (of 11 total)
  • The topic ‘What does an MTer do for RSS Feed’ is closed to new replies.