Forums

[resolved] Does migrating blog affect my feed? (14 posts)

  1. alda
    Member
    Posted 1 year ago #

    Hi,

    I've just switched to WordPress from Blogger and am wondering if it will affect my feed in some way. Do I have to specify a new path, or do anything else?

    Thank you!
    Alda
    www.icelandweatherreport.com

  2. haochi
    Member
    Posted 1 year ago #

    Congrats on successfully moving your blog.
    Codex: Finding Your Feed URL

  3. alda
    Member
    Posted 1 year ago #

    Thanks haochi! :)

    As for the link you sent ... I'm really confused. This is all very new to me. I gather that I can install a piece of code in my .htacess file that will redirect my old feed to the new site, but from what I can see they only provide them for b2 and Movable Type users, not blogger. Does that matter?

  4. haochi
    Member
    Posted 1 year ago #

    I believe this is what you want for the .htaccess file (it redirects atom.xml and rss.xml - which Blogger uses - to WordPress' Atom and RSS2 feed, respectively):

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^atom.xml$ ?feed=atom [R=302,L]
    RewriteRule ^rss.xml$ ?feed=rss2 [R=302,L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
  5. alda
    Member
    Posted 1 year ago #

    Thank you so much.

    So - if I install this, will my feeds redirect automatically, i.e. those readers who are already subscribed will continue to receive feeds from this new site??

    Just speak to me as you would to a child ... :)

  6. alda
    Member
    Posted 1 year ago #

    Hi again

    I added this code to my .htaccess file and published a post. Usually I have people logging on within minutes, but not so now. It's been more than an hour and no one has come through on a feed, so I'm guessing it's not working.

    What exactly am I doing wrong??

  7. haochi
    Member
    Posted 1 year ago #

    So - if I install this, will my feeds redirect automatically, i.e. those readers who are already subscribed will continue to receive feeds from this new site??

    It should. It basically redirects all requests to /atom.xml & rss.xml (which Blogger used) to WordPress' equivalent with a 302 redirect.

    It's been more than an hour and no one has come through on a feed, so I'm guessing it's not working.

    Well, the redirection is not working, so either the code I posted above is wrong or you did something wrong.

    * http://icelandweatherreport.com/atom.xml
    * http://icelandweatherreport.com/rss.xml

    Have you replaced the WHOLE .htaccess file with the code I posted above? Also, try to add a "/" (without quotes) in front of the two ? (question marks). Then click on the above two links to see if it's working.

  8. alda
    Member
    Posted 1 year ago #

    I didn't replace the whole .htaccess file because there is already code in there to do with my permalinks ... something about migrating from Blogger to Wordpress, which affected my permalinks ... as you can see I don't know what I'm talking about, I just followed set instructions and it solved the problem at the time!

    So, is the feed redirect code the only thing supposed to be in the .htaccess file, otherwise it won't work??

  9. haochi
    Member
    Posted 1 year ago #

    Ok, then just add the following two lines

    RewriteRule ^atom.xml$ /?feed=atom [R=302,L]
    RewriteRule ^rss.xml$ /?feed=rss2 [R=302,L]

    after RewriteBase / in the .htaccess file.

  10. alda
    Member
    Posted 1 year ago #

    Haochi, the code in my .htaccess file looks like this

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>

    RewriteRule ^atom.xml$ /?feed=atom [R=302,L]
    RewriteRule ^rss.xml$ /?feed=rss2 [R=302,L]

    Is that right?? Because the feed still isn't working ... :-(

  11. haochi
    Member
    Posted 1 year ago #

    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /
    RewriteRule ^atom.xml$ /?feed=atom [R=302,L]
    RewriteRule ^rss.xml$ /?feed=rss2 [R=302,L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /index.php [L]
    </IfModule>
  12. Otto42
    Moderator
    Posted 1 year ago #

    A much better, simpler, and faster way to do this:

    Redirect 301 /atom.xml http://icelandweatherreport.com/?feed=atom
    Redirect 301 /rss.xml http://icelandweatherreport.com/?feed=rss2

    Put these at the very top of the .htaccess file. No need for screwing with rewrite rules or anything else. Easy.

    Also, you want a 301 redirect, not a 302. 302 is temporary, 301 is permanent.

  13. alda
    Member
    Posted 1 year ago #

    Thank you Otto. That worked perfectly.

  14. farangkinok
    Member
    Posted 1 year ago #

    Hi guys,

    I'm trying the redirect thing 301 for my former blogger feed:

    http://mysite.com/feeds/posts/default?alt=rss

    (I have wordpress 6 and i am using permalink)

    unfortunately the redirect in my htaccess of this url does not work (i followed the advice of this thread), I also vainly try to use a plugin for redirect.

    Any idea how to redirect this url to my wordpress rss feed?

    hope you can help :)

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags