如何配置 app.yaml 文件以将所有 URL 重定向到另一个 URL?例如,我希望http://test.appspot.com/hello或http://test.appspot.com/hello28928723重定向到http://domain.com。
我目前只提供静态文件。这是我的 app.yaml 文件:
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