$conf, $runtime; function_exists('chdir') AND chdir(APP_PATH); $r = 'mysql' == $conf['cache']['type'] ? website_set('runtime', $runtime) : cache_set('runtime', $runtime); } function runtime_truncate() { global $conf; 'mysql' == $conf['cache']['type'] ? website_set('runtime', '') : cache_delete('runtime'); } register_shutdown_function('runtime_save'); ?>migration - Can't see images in posts after migrating site to subdomain|Programmer puzzle solving
最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

migration - Can't see images in posts after migrating site to subdomain

matteradmin8PV0评论

After moving my site to a a subdomain for testing, everything works fine except the images. I can see the images in metaslider plugin but all the other images on the site are blank. All images are visible in the media library and the image URLs on my posts are correct, but nothing is showing.

After moving my site to a a subdomain for testing, everything works fine except the images. I can see the images in metaslider plugin but all the other images on the site are blank. All images are visible in the media library and the image URLs on my posts are correct, but nothing is showing.

Share Improve this question asked Jan 11, 2019 at 15:18 JohanCAnderssonJohanCAndersson 11 bronze badge
Add a comment  | 

1 Answer 1

Reset to default 1

I'd use a Search/Replace plugin (I like "Better Search and Replace") to look for any old URLs. (That plugin has a 'test-but-don't-change' option.) If you find any old URL, use the same plugin to replace with the new URL.

Although you can use SQL commands to make the changes, the plugin has always worked better and faster and easier for me.

I'd also check the URLs for the media item on the Media page. Might be that the old URL is in there. The plugin will fix that.

Post a comment

comment list (0)

  1. No comments so far