Error: Not Found
The requested URL /xxxxxx.php was not found on this server.
I am using the header('Location: xxx.php') to redirect after user authentication. I have tried looking through the Google App Engine Documents but cannot seem to find approved ways of using the header redirect. The file exist and should be incorporated in my deployment. Other than it residing on GAE I cannot find a reason why the file would not be found.
php code
listView.setOnItemClickListener(new OnItemClickListener() {
@Override
public void onItemClick(AdapterView<?> parent, View view,
int position, long id) {
Toast.makeText(getApplicationContext(),
"Click ListItem Number " + position, Toast.LENGTH_LONG)
.show();
}
});
I loosely understand what is happening with the app.yaml handlers. This is what my file looks like:
header('Location: index.php'); // Redirecting To Home Page
Other than this (until the next bug pops up) the entire site works. Any help or guidance would be greatly appreciated. Thank you
One close answer/example I have found though:PHP header() redirect in Google App Engine
答案 0 :(得分:1)
为网站中的每个页面创建一个url处理程序有助于此。将文件类型添加到处理程序也有帮助。
handlers:
- url: /
script: index.php
- url: /profile.php
script: profile.php
现在正在运作!