• Resolved Dermod

    (@dermod)


    Hi

    I’m trying to import from blogger using the inbuilt blogger import tool in 2.2. (I read that Justinsomnia helped adapt blogger.php to ensure permalinks were being kept, which is essential for seamless migration). However the permalinks are not being accurately imported. blogger.php is now markedly different to the one that Justinsomnia helped configure and which he mentions on his post, and I can’t make the permalinks transfer properly.

    As an example, a post from blogger that goes

    https://dermod.blogspot.com/2007/07/importing-podcast-into-wordpress-from_01.html

    changes to

    example.com/2007/07/importing-a-podcast-into-wordpress-from-blogger-part-two.html

    In many cases, unless the permalinks are short, the wordpress created permalinks are longer.

    Why does this happen? Anything I can do about it please?

    Thanks

    Dermod

Viewing 5 replies - 1 through 5 (of 5 total)
  • I have put what I think is a solution to this problem here
    https://my.opera.com/djp/blog/2007/07/02/maintain-permalinks-moving-from-new-blogger-to-wordpress-2-0

    my slightly hacky solution requires just 2 lines to be added to blogger.php.

    Thread Starter Dermod

    (@dermod)

    You are a star! Thank you so much. Works a treat.

    Dermod

    Thread Starter Dermod

    (@dermod)

    Just a quick question to follow up – I need to write in the .htaccess file a rewrite rule that changes requests for the old blogger archive and labels files to either the relevant archive and category pages in wordpress, or at least the index page. Google tends to use archive pages in old results.

    So if someone is looking for the May 2006 archive, the structure in blogger is:

    https://bonhom.ie/archive/2006_05_01_archive.html

    In wordpress, the structure will be:

    https://bonhom.ie/2006/05

    Similarly, with categories/labels, the blogger structure is, for example with music:

    https://bonhom.ie/labels/music.html

    The wordpress structure will be:

    https://bonhom.ie/category/music

    I attempted tinkering with the .htaccess file myself but I don’t know what I’m doing and it crashed wordpress.

    Any help would be greatly appreciated!

    Thread Starter Dermod

    (@dermod)

    OK I’m trying here but it’s still not working, and I’ve just a few hours before it all goes live.

    I’m trying for the categories:

    RewriteRule ^labels/(.*).html$ category/$1/ [L]

    and for the archives:

    RewriteRule ^archive/([0-9]{4})_([0-9]{1,2})_([0-9]{1,2})_archive.html$ $1/$2/ [L]

    I get a 404 file each time. I think I’m nearly there but does anyone know what I’m doing wrong? Thanks

    Thread Starter Dermod

    (@dermod)

    Sorted it. Added QSA R L to both lines, thus:

    RewriteRule ^labels/([^/]+).html$ category/$1/ [QSA,R,L]
    RewriteRule ^archive/([0-9]{4})_([0-9]{1,2})_([0-9]{1,2})_archive.html$ $1/$2/ [QSA,R,L]

    Hope this helps others!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Blogger import tool does not accurately import permalinks’ is closed to new replies.