I have a really simple problem that probably requires a complex solution. I own a website that hosts funny and interesting pictures - a lot of them. If someone clicks on a direct link to an image that is hosted at my server is there a way to redirect that person from the actual *.jpg file to the blog post featuring the same picture? For example: The file: http://www.moneyandshit.com/wp-content/uploads/2010/10/bike_world_war_2.jpg Should be automatically redirected here: http://www.moneyandshit.com/boy-and-his-bike/ Is this possible? Sometimes a person takes a link to a picture in my website and sends it to their friends or posts it to Facebook - the pictures get thousands of shows without the people ever getting to my blog. Is there any way to achieve this with .htaccess or any other way? All ideas are welcome!
I guess it could be achieved making a script with a class that generate the image from database. And its output instead been a simple image, it could output a link with your image in it. ~Mike