title: Using Basic Authentication (htaccess) to restrict access to a specific URL
body: <p>I need to restrict access to a particular URL, e.g. <a href="http://mydomain.com/this/is/the/url" rel="noreferrer">http://mydomain.com/this/is/the/url</a> on my webserver using Basic Authentication through Apache. Any other URL should be openly accessible. I have seen that you can add specific rules to files using:</p>
  
  <pre><code>&lt;Files "mypage.html"&gt;
    Require valid-user
  &lt;/Files&gt;
  </code></pre>
  
  <p>My problem is that all requests are routed to controllers using mod-rewrite and so I don't think that I can restrict access based on the file. Any ideas would be most helpful!</p>