How do I know if it works? Just have to wait until the website gets crawled again?
If so, then I will be patient and if it does not work I will try your alternative!
Thanks so much for your help!
Thanks a lot Doug! I guess that would solve it. Just have to manually set images linking to actual image first then.
Does it matter where i put that code in the functions.php file? (I am not very experienced with these things)
The problem is that I have uploaded these images as post attachments. Now I have indeed tried to make them link to the actual image, but there still is this for example:
http://europeanmovies.org/danish-movies/best-danish-movies/in-a-better-world_112983663482/
or
http://europeanmovies.org/?attachment_id=4301
And they turn up in Google, sometimes (before i lost ranking, no clue where i am now) higher than the actual pages.
Even though when you click on this image in the actual post, it will take you to the wp/content file