title: Angular adding extra logic to 404 handling on non angular routes
body: <p>I have an angular site hosted in S3, and I have a 404 route set up (I use hash), if someone for example does</p>
  
  <pre><code>mysite/#/gibberish
  </code></pre>
  
  <p>goes to</p>
  
  <pre><code>mysite/#/404
  </code></pre>
  
  <p>and on the s3 bucket we have a redirect rule in place for</p>
  
  <pre><code>mysite/gibberish
  </code></pre>
  
  <p>goes to</p>
  
  <pre><code>mysite/404.html
  </code></pre>
  
  <p>all is well</p>
  
  <p>Now I just want to add an extra logic on top that if someone types in</p>
  
  <p>mysite/customerid</p>
  
  <p>which is a 404 to somehow redirect this to an angular controller so I can send this request to right page.</p>
  
  <p>So somehow in my redirect in S3 rule add a reg exp for some incoming request and rather than serve 404.html send it i.e. mysite/#/handlethis</p>
  
  <p>Is this possible ?</p>