I'm attempting to redirect all external links thru a php file with the url of the external site set as a variable.
Example. If my site (mysite.com) has a link to google.com/results/1234
I'd like to automatically rewrite the url to something linke mysite.com/external.php?p=google.com/results/1234.
I'd like an htaccess solution, as I am unable to change files associated with external urls without affecting other urls on the site.
I DO Not want to redirect any link with mysite.com.
If someone could point me in the right direction, I would really appreciate it.