0

我的应用程序的目录结构如下...

/
 /folder1/index.php
 /folder1/page1.php
 /folder1/page2.php
 /folder2/index.php
 /folder2/page1.php
 /folder2/page2.php

在 app.yaml 我写了以下内容......

application: myAppID
version: 1
runtime: php
api_version: 1

handlers:
- url: /(.*\.(gif|GIF|png|PNG|jpg|JPG|ico|ICO|js|JS|css|CSS))
  static_files: \1
  upload: (.*\.(gif|GIF|png|PNG|jpg|JPG|ico|ICO|js|JS|css|CSS))

- url: /
  script: index.php

除了主页没有其他页面加载正常!!!我了解 app.yaml 需要重新编写。但是我是否需要在任何通配符方式上指定每个文件夹和我的应用程序的脚本?

4

1 回答 1

2

Did you read the section on configuring script handlers?

You can use back references.

- url: /(.*)/
  script: \1/index.php

- url: .*
  script: index.php
于 2013-09-30T22:09:46.380 回答