【发布时间】:2018-10-17 14:08:17
【问题描述】:
需要将所有 404 链接重定向到 www 文件夹内的 index.html
这是我的 app.yaml
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/(.*)
这是一个静态 angular 2 应用程序,我需要将所有未找到 404 错误的页面定向到 index.html。 有 (www) 文件夹,里面有包括 index.html 在内的所有文件。
【问题讨论】:
-
这是否适用于 PathLoactionStrategy?
标签: angular google-app-engine google-cloud-platform angular2-routing