Media URLs not rewriting after site migration
-
I copied my site from an Apache server to an nginx server today.
I set my local hosts file to point to my new server to make sure everything was working correctly.
I noticed that media file URLs aren’t getting rewritten, resulting in broken images in the front-end. However, when I go into my Media Library on my new site, all my images are appearing as expected from my S3 bucket.
I have object versioning turned on for both the sites running on the Apache and nginx servers
My old site was inside a WordPress Multisite install; for the nginx server, I migrated it to a single site install. In order to keep my S3 bucket as it was and not have to migrate over all the paths and object versioning folder names, I set my Uploads path to the original path on the Multisite, which is “wp-content/uploads/sites/41/”
Other than removing the “wp_41_” from my table prefixes, both databases are the same. Everything seems to be working as expected on my new site except for the Media URLs
- The topic ‘Media URLs not rewriting after site migration’ is closed to new replies.