Samples (both for the same census image link!)


<a href=" http://www.kqzyfj.com/click-2454471-10470501?url=http%3A%2F%2Fcontent.ancestry.com%2FBrowse%2Fview.aspx%3Fdbid%3D6742%26path%3DColorado.Custer.Rosita.34.33" target="_top">Redirect Link</a> <img src="http://www.tqlkg.com/image-2454471-10470501" width="1" height="1" border="0"/>

<a href=" http://www.tkqlhce.com/click-2454471-10470501?url=http%3A%2F%2Fcontent.ancestry.com%2FBrowse%2Fview.aspx%3Fdbid%3D6742%26path%3DColorado.Custer.Rosita.34.33" target="_top">Redirect Link</a> <img src="http://www.awltovhc.com/image-2454471-10470501" width="1" height="1" border="0"/>




Ancestry URL:
http://content.ancestry.com/Browse/view.aspx?dbid=6742&path=Colorado.Custer.Rosita.34.33

Proposed affiliate link:
<a href="http://www.kqzyfj.com/click-2454471-10470501?url=

Result:
<a href="http://www.kqzyfj.com/click-2454471-10470501?url=http://content.ancestry.com/Browse/view.aspx?dbid=6742&path=Colorado.Custer.Rosita.34.33>