I would like to redirect an url(A) to another url(B). When url(B) loading, I need to run some code and it might redirect to another url(C).
Example :- Like paypal notification url, I need to run some code in the background when a user browses specific type urls.
Any ideas on how to do this?