【问题标题】:Google app engine redirect everything to index.php谷歌应用引擎将所有内容重定向到 index.php
【发布时间】:2013-10-18 13:35:13
【问题描述】:

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

共享主机上的旧脚本已跟随 htacess

<IfModule mod_rewrite.c>
RewriteEngine On
RewriteBase /

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

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

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

【问题讨论】:

    标签: php .htaccess google-app-engine mod-rewrite redirect


    【解决方案1】:

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

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

    【讨论】:

    • 错误:未找到 在此服务器上未找到请求的 URL /test。
    • 你能发布完整的 app.yaml 和给出错误的完整 url
    猜你喜欢
    • 2011-12-30
    • 1970-01-01
    • 2016-05-10
    • 1970-01-01
    • 2013-01-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多