media library not showing images
I have a wordpress install that I copied the entire directory and to make for a second domain. I was making changes to set the site to be it’s own version of my original cool site and noticed that my media library wasn’t loading correctly.
when I click I media library it the files all load but no actual images are shown. If I click on a specific image and look a the url, I can copy that url. When I load it into a new tab it give me a 404 error.
I’ve checked the files via ftp, they are there, the permissions seem right too (dirctories 775 and files 644).
The strange thing is that when I view that url for the image(s): it is this:
https://www.example.com/wp-content/uploads/2020/02/mypic.png
but when I load the url, it seems to be re-directing to
https://www.example.com/onlinetech/wp-content/uploads/2020/02/mypic.png
where the “onlinetech” is the name of the directory where the new wordpress is installed.
I’ve tried de-activating all plugins and that didn’t change anything. What else could be causing this?
Leave an answer