• Hello!

    I have a big problem with my image links. If an image has %2C in it’s title, WordPress gives me a 404 error, and doesn’t find the link to that image, even though that file really exists and I can see it via FTP.

    So if the link to the image is like this:

    domain.com/wp-content/uploads/2014/08/image%2C.jpg

    WordPress tells me it can’t find that image and just gives a 404 error.

    If I modify the title of the image like this:

    domain.com/wp-content/uploads/2014/08/image.jpg, all works well and wordpress is displaying that image.

    I have no idea what is going on and what should I do to fix my images. There are thousands of images like this in my posts and I just can’t do it manually. Is there a plugin or something to help me fix the image titles so that they display correctly?

    Thanks

Viewing 1 replies (of 1 total)
  • That happens because combinations such as %2C has special meaning when inserted into an URL. In the case of %2C, the browser will attempt to convert that combination to a comma, resulting in a 404 error. If you Google “url-encoding characters”, you can find many such coding characteristics.

    You may have also noticed that because you used the special character in the subject line of this thread, the url-encoding structure also caused the subject line to go 404. We had to have a moderator manually access this thread and remove the percentage sign from the subject line so the volunteers could access this post.

    The solution is to not use such characters as percentage symbols in the image filename of URL paths to content on your site. Generally, it’s best to stick with standard English alphabet characters.

Viewing 1 replies (of 1 total)
  • The topic ‘URLs with , gives error 404’ is closed to new replies.