如何在 fat-free 框架中重定向 index.php
how to redirect index.php in fat-free framework
我用 fat-free 框架重写了我的旧应用程序。每个使用此应用程序的人都有书签 http://www.domain/app/index.php 此 url 现在无法在 F3 中使用。
我可以将 index.php 重定向到 http://www.domain/app/ 吗?
谢谢
您可以在 framework level:
处定义重定向
- 在您的
index.php
文件中:
$f3->redirect('GET /index.php','/');
- 或在您的配置文件中:
[redirects]
GET /index.php = /
我用 fat-free 框架重写了我的旧应用程序。每个使用此应用程序的人都有书签 http://www.domain/app/index.php 此 url 现在无法在 F3 中使用。 我可以将 index.php 重定向到 http://www.domain/app/ 吗? 谢谢
您可以在 framework level:
处定义重定向- 在您的
index.php
文件中:
$f3->redirect('GET /index.php','/');
- 或在您的配置文件中:
[redirects]
GET /index.php = /