我在我的index.php
中部署了以下文件:filecallup.js
,image.png
,userprofile.php
,xxx.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')
>?