• Resolved dasigrist

    (@dasigrist)


    Hi, I may be missing something here, but the plugin got some 404 in my site, so I created a redirect from /wp-content/uploads/2018/01/helene_laffitte_by_Carole_NB_1000px-e1505912755323.jpg.png (don’t exist) to /wp-content/uploads/2017/09/helene_laffitte_by_Carole_NB_1000px-e1505912755323.jpg (correct one). This first one was successfully created and it’s working fine. Then I tried to create another one from /wp-content/uploads/wp-links-page/httpwwweycomusenissues1528923622-300×168.jpg to /wp-content/uploads/wp-links-page/httpwwweycomusenissues1530564114-300×168.jpg. this one does not work at all. When I go to the “Redirects” tab, in the first redirect the screen is really simple. I have Source URL, Target URL and Group. For the second one I have a lot more options and my Matched Target is empty and if I try to put the other URL there it simply don’t save. I just want another simple source, target option.
    Can someone tel me what I’m doing wrong?

    thank you

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

Viewing 2 replies - 1 through 2 (of 2 total)
  • Hi @dasigrist,

    I just had to do quite a lengthy investigation to find out why I started seeing lots of 404s resulting from images on my website. Coincidentally, the issue I had is also present in the issue you mention in your second redirect!

    Can you see the difference between these two versions of your target URL?

    /wp-content/uploads/wp-links-page/httpwwweycomusenissues1530564114-300×168.jpg
    /wp-content/uploads/wp-links-page/httpwwweycomusenissues1530564114-300×168.jpg

    The difference is in the “x”. The first link has a special character, aka high-ASCII character, that you can create by typing Alt-0215, while the second link has the plain, regular x you’ll find on any standard keyboard.

    It appears that some plugin was replacing the regular x with a special-character x (I could not find which plugin did this, though I have a suspicion that it was one of the plugins that interact with the theme to generate the core of the pages, such as Kirki Toolkit or Visual Composer)

    To solve the problem, can try creating a Regex redirect if you have several pages where the link to the image is right, except for the special-character x. You can try this:

    Surce URL: /wp-content/uploads/wp-links-page/(.*)%C3%97(.*)
    Target URL: /wp-content/uploads/wp-links-page/$1x$2

    Where the source URL has %C3%97, which is the encoded version of × (Alt-0215), and the target URL has the regular x.

    Now, for the specific redirect you mention above, you would need to try something like this:

    Source URL:
    /wp-content/uploads/wp-links-page/httpwwweycomusenissues1528923622-300%C3%97168.jpg
    Target URL:
    /wp-content/uploads/wp-links-page/httpwwweycomusenissues1530564114-300×168.jpg

    This specific redirect does not need to be Regex (though it can be if you need).

    Hope it all makes sense.

    Regards,
    CB

    Thread Starter dasigrist

    (@dasigrist)

    Hi CB,

    WOW. that is a hell of a research. Thank you so much. I will try your suggestion and let know what happened.

    I only have that specific redirection with this problem, I was able to create others with “normal” URL.

    Thanks again

    Daniel

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘First redirect created fine. Second one doesn’t work’ is closed to new replies.