• My site has been up for 12 years or so, but during a change of hosting a year or so back, something went wrong. I have always used Permalinks with the postname as shown in the example, but the internal links from this post to other ones on the site are shown as /year/month/postname and hence get a 404 when someone tries to access them. I tried a site wide redirect plugin to fix these 404s, but that resulted in most of my site being removed from the Google index for redirects. Quite possibly I did the redirect incorrectly!

    Is there a way to fix the incorrect URLs within my posts?

    Steve

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Hello Steve,

    How many URL’s need to be renamed? If it’s a small number you could rename the URL from the post edit page, and if it is a large number you could try using a PHPMyAdmin search and replace in the database, or changing/updating links with MYSQL, or use a search and replace plugin?

    Thank you,

    Albert

    Thread Starter steheap

    (@steheap)

    I think there are a lot! I hadn’t thought of PHPMyAdmin, so I will investigate that! Thanks!

    Steve

    Thread Starter steheap

    (@steheap)

    I decided to use Better Search Replace and went through each of the years and months to remove the incorrect links. There were several thousand. So that is good now. However, I am still seeing 404s which reference a URL structured like this:
    /2015/07/learning-points-from-creating-a-new-symbiostock-website?share=facebook

    Does anyone know where this URL might be stored in WordPress? The incoming user agent is Petalbot: PetalBot;+https://webmaster.petalsearch.com/site/petalbot)

    Is the bot following something on my site that I need to correct to remove the year and date from the URL?

    Steve

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Wrong permalinks in the text of my posts’ is closed to new replies.