title: Glassfish how to prevent direct access to a html file
body: <p>I am running glassfish 3.1
  Say I have 2 html files: a.html b.html and their urls are:</p>
  
  <pre><code>http://localhost:8080/mysite/a.html
  http://localhost:8080/mysite/b.html
  </code></pre>
  
  <p>I only want a user to click a link from within <strong>a.html</strong> to get to <strong>b.html.</strong> if a user try to directly access b.html using <code>http://localhost:8080/mysite/b.html</code>, he should be redirected back to a.html.</p>
  
  <p>How do i achieve this? I read something about .htaccess file. Does glassfish support this where should I find this file and modify it to suit my needs as stated above?</p>