0

我有一个显示用户配置文件的 php 页面。该文件名为profile_full.php。为了查看每个用户的个人资料,有一个类似这样的链接:profile_full.php?email=1 for user 1profile_full.php?email=2 for user 2等等。

我使用 .htaccess 文件来剪切 url 地址。其如下:

# profile requests
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.+)$ /profile_full.php?email=$1 [L,QSA]

因此,对于 url,如果类型/1获取用户 1 的个人资料页面,如果类型/2获取用户 2 的个人资料页面等。Tt 在我的笔记本电脑上使用 XAMPP 的本地主机中工作正常。

我的问题是如何修复我的 app.yaml 文件以使其与谷歌的应用引擎一起工作。这是我的 app.yaml,它不起作用:

application: testing-my-app1  
version: 1
runtime: php
api_version: 1
threadsafe: yes

handlers:


- url: /profile_full
  script: profile_full.php

知道如何修复我的处理程序吗?错误消息是 The url "/1" does not match any handlers。

4

0 回答 0