无法在appspot.com中查找其他文件-app.yaml问题

时间:2020-02-02 13:58:06

标签: google-app-engine

我在我的index.php中部署了以下文件:filecallup.jsimage.pnguserprofile.phpxxx.appspot.com

index.php文件应收集一些URL查询变量并打开userprofile.php

我的问题是,当我单击链接(https://xxx.appspot.com/?user=peter)时,它仍然指向index.php文件,并且未加载userprofile.php

我认为我的app.yaml文件存在问题,因为它可以在除GAE之外的其他服务器中很好地呈现。

这是app.yaml代码:

#Use the PHP 7.3 runtime (BETA) by replacing "php72" below with "php73"
runtime: php72
#entrypoint: serve main.php
service: default
#threadsafe: true

handlers:
# Serve a directory as a static resource.
#- url: /stylesheets
#  static_dir: stylesheets

# Serve images as static resources.
- url: /(.+\.(gif|png|jpg))$
static_files: \1
upload: .+\.(gif|png|jpg)$

- url: /(.+\.(htm|html|css|js))$
static_files: \1
upload: .+\.(htm|html|css|js)$

# Serve your app through a front controller at index.php or public/index.php.
- url: /mail.php
script: auto

这是index.php代码:

<?php
some codes here`
header('Location:userprofile.php')
>?

0 个答案:

没有答案
相关问题