Google App引擎将所有内容重定向到index.php [英] Google app engine redirect everything to index.php

查看:71
本文介绍了Google App引擎将所有内容重定向到index.php的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I need to redirect everything to index.php

共享主机上的旧脚本已生效

the old script on shared hosting has followng htacess

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /

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

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

是的,我太菜鸟不知如何在Google App引擎中做到这一点(

and yes Im too noob to work out how to do this in google app engine(

推荐答案

将以下内容添加到您的app.yaml中,这应该可以解决问题:)

Add the below to your app.yaml , this should do the trick :)

handlers:
- url: /.*
  script: index.php

这篇关于Google App引擎将所有内容重定向到index.php的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆