• Hi

    I recently migrated my wordpress site to a new server.
    Previous server was in Windows, now it is Linux.
    I’m having an issue with some broken images, I discovered the issue is because the url has Uppercase letters, for example: http://www.example.com/wp-content/uploads/2016/08/Shoe.jpg. But if I go to the file in the uploads folder, it is lowercase: shoe.jpg.
    So the issue is just with url for these images. How can I modify the url? Is there a way or a plugin that can do this for me?

    Thanks

Viewing 1 replies (of 1 total)
  • Moderator bcworkz

    (@bcworkz)

    Maybe someone knows of some sort of “Win2nix” plugin, but I don’t. A custom written script can do the job. How it works depends on exactly what needs to be fixed. If it’s just URLs in post content, it’s one thing. If it’s featured images and other things outside of content it gets more complicated but still possible.

    If ALL uppercase characters of image URLs need to be changed to lowercase, the logic is fairly simple. If the script needs to check the actual file to determine if a change should occur, again it’s more complicated but possible. This script would only need to be run once for existing images, so there’s no point in getting too fancy with the user interface, etc. The volume of data to process factors in too. If it’s a few dozen images, it’d be just as easy to manually make the changes instead of developing code. If there’s many thousands, some batching will need to be implemented in order to not tie up the server for a long time.

    Within reason, just about anything is possible with PHP if one is willing to put in the development effort. If you are unable to code something up, you could hire help at jobs.wordpress.net.

Viewing 1 replies (of 1 total)

The topic ‘Issue with images urls’ is closed to new replies.