WordPress.org

Ready to get started?Download WordPress

Forums

What does an MTer do for RSS Feed (12 posts)

  1. pankaj
    Member
    Posted 10 years ago #

    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

  2. Anonymous
    Unregistered
    Posted 10 years ago #

    just use a .htaccess redirect to the new file for the old file. Worked like a champ for me.

  3. pankaj
    Member
    Posted 10 years ago #

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

  4. charle97
    Member
    Posted 10 years ago #

    what mod rewrite rules are you currently using?

  5. pankaj
    Member
    Posted 10 years ago #

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

  6. charle97
    Member
    Posted 10 years ago #

    post one or a few that you use.

  7. pankaj
    Member
    Posted 10 years ago #


    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]

  8. pankaj
    Member
    Posted 10 years ago #

    Man you rock.
    Thanks a lot.
    Pankaj

  9. pstew21
    Member
    Posted 10 years ago #

    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 http://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.

  10. trevorturk
    Member
    Posted 10 years ago #

    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.

  11. shelleycat
    Member
    Posted 10 years ago #

    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.

  12. trevorturk
    Member
    Posted 10 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.