title: How to configure Google App Engine yaml file to handle 404 Error
body: <p><a href="https://i.stack.imgur.com/HALYk.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/HALYk.png" alt="enter image description here"></a></p>
  
  <p><strong>Need to redirect all 404 links to index.html inside www folder</strong> </p>
  
  <p>This is my app.yaml </p>
  
  <pre><code>runtime: python27
  api_version: 1
  threadsafe: true
  
  handlers:
  - url: /
    static_files: www/index.html
    upload: www/index.html
  
  - url: /(.*)
    static_files: www/\1
    upload: www/(.*)
  </code></pre>
  
  <p>It's a static angular 2 app , and i need to direct all page not found 404 errors to index.html.
  There is (www) folder and inside that all file including index.html there.</p>