Google应用程序引擎将所有内容重定向到index.php

Google应用程序引擎将所有内容重定向到index.php,php,.htaccess,google-app-engine,mod-rewrite,redirect,Php,.htaccess,Google App Engine,Mod Rewrite,Redirect,我需要将所有内容重定向到index.php 共享主机上的旧脚本具有以下htacess <IfModule mod_rewrite.c> RewriteEngine On RewriteBase / RewriteCond %{REQUEST_FILENAME} !-f RewriteCond %{REQUEST_FILENAME} !-d RewriteRule ^(.*)$ index.php/$1 </IfModule> 重新启动发动机 重写基/ 重写cond

我需要将所有内容重定向到index.php

共享主机上的旧脚本具有以下htacess

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /

RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d

RewriteRule ^(.*)$ index.php/$1
</IfModule>

重新启动发动机
重写基/
重写cond%{REQUEST_FILENAME}-F
重写cond%{REQUEST_FILENAME}-D
重写规则^(.*)$index.php/$1

是的,我太笨了,无法在谷歌应用程序引擎中解决这个问题(

将以下内容添加到你的应用程序中。yaml,这应该可以做到:)


错误:找不到请求的URL/测试在此服务器上找不到。能否发布完整的app.yaml A和给出错误的完整URL
handlers:
- url: /.*
  script: index.php