Divi WordPress Theme
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

WordPress fix Chaos in URLs and errors 404 following permalinks modifications

Discussion in 'Misc WordPress Requests' started by YesICannes, Feb 5, 2018.

  1. YesICannes


    Chaos in URLs and errors 404 following permalinks modifications, by YesICannes

    My current WP configuration
    • PHP / MySQL version: less than 5.6
    • Theme used: Viewport
    • Extensions: Askimet, AMP, Google Adsense, GADWP, Image Widget, Polylang, Publish to Apple News, Redirection, Simple Light Box, WP Rocket, Yoast
    • Name of the host: Infomaniak
    • Website address: yesicannes.com and yesicannes.com/fr

    Issue encountered: Chaos in URLs and errors 404 following permalinks modifications

    Hi there,

    Two changes I did in permalinks resulted in a chaos in the URLs, causing countless errors 404.

    YesICannes is a web magazine in 2 languages: yesicannes.com and yesicannes.com/fr. Our articles are indexed in GoogleNews, so the articles’ URLs must include some numbers.

    Until recently, my permalinks were: yesicannes.com/%postname%
    To add the numbers desired by Google, I used to preview the post and then manually added the generated “post id”, separated from the title of the article by a “-“.

    Then, I thought to do this insertion automatically by modifying the permalinks with the following form: yesicannes.com/%postname%/%post_id%/.
    Surprisingly, the links were displaying: yesicannes.com/postname/post_id/post_id/ with twice the number automatically inserted (!?)
    But I did not get an alert from Google.

    But I thought that with a “/” as a separator, it did not look like the URLs I created so far, and I changed the permalinks a second time from “/” to “-” to get yesicannes.com/postname%-%post_id%/

    I then started receiving calls from visitors who had 404 errors in the latest published reports and Goolge sent me a mail talking about augmented 404 errors on http://yesicannes.com/ and http://yesicannes.com/fr/, (type message [WNC-658800]).

    Well, I understand that going from “/” to “_” can create 404 errors, and I realize my mistake. But the problem is more disturbing: the 404 errors display this kind of link, i.e. whereas the normal URL is: http://yesicannes.com/fr/mouratoglou-tennis-academy-sophia-antipolis-33009), the bad link is:


    Another example of error 404: (whereas http://yesicannes.com/fr/mouans-sartoux-miel-ciel-provence-36831/ is good)


    The number is repeated with some kind of replication of the name of the post… Would anyone have an idea of what is happening and how to overcome this embarrassing situation?

    Thank you in advance for your help.

    Chaos in URLs and errors 404 following permalinks modifications

Share This Page

Monarch Social Sharing Plugin