I migrated a blog from Weebly to WordPress and we have links in Facebook to the old URL structure Weebly used for Posts. This portion
.html is causing a 404 in WordPress.
Is there a way using 301 Redirect to remove the parts of the URL that are causing the issue. Or using the template redirect hook and regex inside WordPress to fix this?
Read more here: Reformat link structure to match WordPress