We have recently retired an online property and are redirecting all traffic to a new site
<VirtualHost *:80> ServerName oldsite.co.uk RedirectMatch 301 (.*) http://www.newsite.co.uk$1 </VirtualHost>
This is working well but our web analytics boffin now wants to get stats on the traffic being redirected from here to there.
I've tried to get it to log the redirects using rewrite log but it doesn't seem to count RedirectMatch as a rewrite - the file rewrite.log was created but it is empty even though redirects are happening.
<VirtualHost *:80> ServerName oldsite.co.uk RewriteLog "/var/log/httpd/sites/oldsite/rewrite.log" RedirectMatch 301 (.*) http://www.newsite.co.uk$1 </VirtualHost>
Can't find anything here or on Google to suggest how to make it work, so wonder if anyone can help?