Google app engine redirect everything to index.php

2019-08-15 02:53发布

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>

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

1条回答
霸刀☆藐视天下
2楼-- · 2019-08-15 03:13

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

handlers:
- url: /.*
  script: index.php
查看更多
登录 后发表回答