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 /1/post/ and .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


If you know the solution of this issue, please leave us a reply in Comment section, to update the question.

Wordpress related questions and answers: