title: Anchor links in php file point to index.html
body: <p>I have a file <code>index.php</code> containing mostly HTML and a bit of PHP. I have declared <code>id</code>s for some elements (e.g., <code>&lt;h2 id="contact"&gt;Contact&lt;/h2&gt;</code>) and provide links to them (cf. below).</p>
  
  <pre><code>&lt;ul&gt;
    &lt;li&gt;&lt;a href="#contact"&gt;Contact&lt;/a&gt;&lt;/li&gt;
  &lt;/ul&gt;
  </code></pre>
  
  <p>The links work fine when clicked (i.e., the user is taken to the anchor point), but they point to, e.g., <code>index.html#contact</code>, so that when the page is reloaded, you get a 500 error.</p>
  
  <p>How can this behaviour be avoided? And why does it occur anyhow?</p>
  
  <p>I'm using the <a href="http://www.yaml.de/" rel="nofollow">YAML</a> CSS framework btw.</p>