I'd like that a specific link goes to a certain header on another page. I know how to do it on the current page.
Take a look at anchor tags. You can create an anchor with
<div id="anchor-name">Heading Text</a>
and refer to it later with
<a href="http://server/page.html#anchor-name">Link text</a>