I want to run a file/script (that sends me an email notification) when a file matches a rewrite/redirect pattern in htaccess.
Can I do it without rewriting to the script file itself then that file performs a simple redirect?
Eg.
RewriteRule ^location/of/old/script/(.*) /my/new/location/$1
Call /notify.php?file=$1