I have been digging but maybe I missed it.
I want all my images under /images/user-images to redirect to a php file.
Example: http://domain.com/images/user-images/Montreal/private/2012_08_10/YzAbCdE.jpg
to goto http://domain.com/photo
but I want to be able to know which image they still requested. The URL path does not need to change, just that if request that path they get the image on a webpage so I can skin it.
This is my current mod rewrite which I have in use.
RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
RewriteRule ^css/.*$ - [PT]
RewriteRule ^js/.*$ - [PT]
Thanks.