Allow hotlinking but redirect when I am my own referrer!
I want to, using htaccess, allow hotlinking BUT if someone views an image on my site I want to redirect them to a "hosted" version of the image where I display my navigation etc.

So essentially anyone hotlinking from an external site will not be affected but if someone views the image on my server directly i.e. www.domain.com/image.jpg itll redirect.  I also want to make sure I can display images correctly from within my site too.

Can anyone help?

EDIT: Thinking about this problem some more I think what I want is to redirect when the URL is the image name itself, I think?

Thanks
Allow hotlinking but redirect when I am my own referrer!
===

I want to, using htaccess, allow hotlinking BUT if someone views an image on my site I want to redirect them to a "hosted" version of the image where I display my navigation etc.

So essentially anyone hotlinking from an external site will not be affected but if someone views the image on my server directly i.e. www.domain.com/image.jpg itll redirect.  I also want to make sure I can display images correctly from within my site too.

Can anyone help?

EDIT: Thinking about this problem some more I think what I want is to redirect when the URL is the image name itself, I think?

Thanks