项目作者: AnimMouse

项目描述 :
simple PHP redirect script designed to run on Google App Engine
高级语言: PHP
项目地址: git://github.com/AnimMouse/appengine-redirect.git
创建时间: 2018-06-30T07:41:39Z
项目社区:https://github.com/AnimMouse/appengine-redirect

开源协议:The Unlicense

下载


Google App Engine PHP redirect

The simple PHP & HTTP redirect script designed to run on Google App Engine.

Configuration

  1. header("Location: URL_HERE", true, HTTP_RESPONSE_CODE_HERE);

Replace https://example.com to the domain of your choice in index.php.

Use either 308 for permanent redirect, or 307 for temporary redirect.

  1. window.location.href = URL_HERE;
  2. <meta http-equiv="refresh" content="0;URL=URL_HERE" />

Replace both https://example.com to the domain of your choice in over_quata.html.

Deploy.

What is over_quata.html?

over_quota.html is used when the instance is experiencing over quota.

When the instance is experiencing over quota, the PHP redirect will not work, so the HTML file will be used to redirect instead.