I have a redirection setup that redirects traffic to my domain to another domain. The traffic going to my domain is from an article directory. I want to be able to track which articles are generating the most traffic by tracking a unique "id" in the redirection url associated with each article.
Can I do something like this?
RewriteEngine on
RewriteCond %{HTTP_referer} ^www.articledirectory.com/?article1$ [NC]
RewriteRule ^/?article1$ "http://www.new-domain.com/page&id1" [R=301,L]
RewriteCond %{HTTP_referer} ^www.articledirectory.com/?article2$ [NC]
RewriteRule ^/?article2$ "http://www.new-domain.com/page&id2" [R=301,L]
RewriteCond %{HTTP_referer} ^www.articledirectory.com/?article3$ [NC]
RewriteRule ^/?article3$ "http://www.new-domain.com/page&id3" [R=301,L]
Thanks,
Mike