How can I redirect certain URLs to trigger a macro?

I have some macro that I will like to use to open a particular kind of URL e.g. Http://mydomain.com.

Is it possible to create a macro or use a program that automatically transfers control to my mydomain.com macro when I click a mydomain.com URL?