title: How to redirect all URLs with Google App Engine
body: <p>How do I configure the <code>app.yaml</code> file to redirect all URLs to another URL? For example I want <code>http://example.appspot.com/hello</code> or <code>http://example.appspot.com/hello28928723</code> to redirect to <code>http://example.com</code>.</p>
  <p>I am only serving static files at the moment. Here is my <code>app.yaml</code> file:</p>
  <pre><code>application: testapp
  version: 1
  runtime: python
  api_version: 1
  
  handlers:
  - url: (.*)/
    static_files: static\1/index.html
    upload: static/index.html
  
  - url: /
    static_dir: static
  </code></pre>