Hi Hanneke,
Sorry to hear this. Have you tried deactivating your plugins? That would be my first suggestion. Let me know if it doesn’t bring about any change.
Hannah
Thanks for your reply! But will this also help for my ‘old’ images? I don’t know how to test this..
Hope to hear from you!
Regards,
Hanneke
[ Please do not bump. ]
What are your permalink settings (Settings > Permalinks)? Did you by chance change these prior to this issue happening?
Hannah
No I didn’t. I switched all my plugins off due to another error and then switched them on again. And as I understand (whilst googling a lot :)) is that permalinks don’t influence the name of the images or do they? Regards!
Hey,
The url you added that was supposed to be to an attachment page doesn’t really make sense to me. Unless you were adding a plugin to make media attachment pages use pretty permalinks they should default to ?attachment_id=6272 for example.
Maybe this changed in WordPress but I know right now that is the default and if you wanted to change the attachment page permalink you would need to use a plugin or custom code.
So this is a product page: https://www.vintagevirus.nl/tekoop/vintage-industriele-kruk-atelierkruk-met-mooi-onderstel-gemaakt-in-de-jaren-70/
And in theory if an image is uploaded on the edit page of that product then it would be “attached” to that product and you could access it through the product url /imagename/
But that should just redirect you to the attachment page url
?attachment_id=IDNUMBER
So I can only provide this information. I can’t really guess at what happened on your site.
I can tell you that the name of an image would affect the permalink if you had a plugin enabling attachments to use pretty permalinks but the permalink structure couldn’t affect the image file name.
I can tell you that the theme does not edit or control the attachment page urls. Or even link to them.
The only way I could see that Google would even know they exist is if you linked to them or you added them to your sitemap in your SEO plugin.
Finally, it’s worth looking at your SEO plugin settings and what it’s doing with attachment pages. Yaost, for example, can force a redirect from attachment urls to the parent pages.
I do suggest you contact your host to get a backup of your site from before this change occurred and it nothing else install that backup on a staging site so you can examine your settings and urls.