title: Access File only via Redirect, Block other Methods
body: <p>I have the following files on my server:</p>
  
  <pre><code>var/www/html/web/
                  -- login.html
                  -- files/content.html
                  -- css/
                  -- js/
                  -- images/
  </code></pre>
  
  <hr>
  
  <p>My aim is when a valid user heads to my domain and/or opens <code>login.html</code>, it will redirect them to <code>content.html</code>. I can do this easily with JavaScript.</p>
  
  <p>Next, I need to block access to <code>content.html</code> through any other method but that redirect. If a user tries to head straight to the reference of the file, it will not allow access; the same goes for all my other folders. Also If the content page access via new tab , then also it redirect to login page .</p>
  
  <p>How can I go about doing this? Usage of <code>.htaccess</code>?</p>