After successfully migrating the WP site, I followed this tutorial: https://rtcamp.com/blogger-to-wordpress/tutorials/permalink-seo-migration/, for redirecting posts. The tutorial had me run a PHP script…
<?php
require_once('wp-load.php');
$res = $wpdb->get_results("SELECT post_id, meta_value FROM $wpdb->postmeta WHERE meta_key = 'blogger_permalink'");
$wpdb->print_error();
foreach ($res as $row){
$slug = explode("/",$row->meta_value);
$slug = explode(".",$slug[3]);
$wpdb->query("UPDATE $wpdb->posts SET post_name ='" . $slug[0] . "' WHERE ID = $row->post_id");
$wpdb->print_error();
}
echo "DONE";
?>
…and then change the WP permalink structure to keep the .html on the end of post URLs (/%year%/%monthnum%/%postname%.html).
I hated having the .html in the URL though so I tried undoing the tutorial (changing the permalink structure back to /%year%/%monthnum%/%postname%/, running the PHP script again, deleted any permalink rewrites I had in .htaccess) and instead installed this redirection plugin. Unfortunately after pasting the plugin’s redirection code into Blogger and then trying to verify by testing the link, it is still not dropping the .html at the end of post URLs. I tried refreshing and resaving permalinks, but nothing is helping. I still get a 404 error.
Please help! I just need the .html to redirect to the URL without it, and it will work because when I manually delete it from the URL it takes me to the correct post.