It was arduous and I definitely recommend backing up your database first. I ended up having to do the manual file renaming and edits to the database via phpMyAdmin. I also migrated a Wordpress site and found that all images with special characters in their filename produced a 404 after migration. So, just to touch upon this issue and a solution that worked for me. Is there a way bash rename all of them with a comparisson table? Or a way to make Apache aware of those differences and point to the right file when this kind of confusion happen? So now I have in my server thousands of accented image filenames with the structure character+ combining accent and WordPress calling the image filenames with the structure accented character. So, it seems like this difference between the á encoding from %C3%A1 ( á character) to a+ %CC%81 (combining accute accent) is what is causing WordPress to not display my images. However if I type this URL in the browser: it works and the image is displayed. I can see via Inspect Element that Wordpress tries to call: and the server returns a 404 error. When WordPress tries to reach the file, it displays an error. The trouble started when I exported the image files which had special characters, for example the file I've migrated a WordPress website from a Hostgator shared host to a Ubuntu Digital Ocean LAMP stack.
0 Comments
Leave a Reply. |