Fat-Free Framework 重定向到无效 url

Fat-Free Framework redirects to invalid url

我目前正在为一个项目使用 Fat-Free Framework。但是每当我浏览到 http://localhost/fatfree/admin/login/, F3 will redirect to the url without slash ("/") at the end. I know this is normal, but the url that I'm being redirected to is invalid. F3 redirects me to http://localhosthttp//localhost/fatfree//admin/index(确切的 url)

我是 运行 PHP 7.1.0 + Apache 2.4 Windows 7 64 位

Config/config.ini.php:

[globals]
DEBUG=3
UI=Views/
BASE=http://localhost/fatfree/
SITENAME="my website"

[configs]
Config/database.ini.php=false
Config/routes.ini.php=false

Config/routes.ini.php:

;<?php die; ?>

[routes]

; main section
GET /=Controllers\Main->index
GET /products=Controllers\Products

; customer section

; admin section
GET /admin=Controllers\Admin->index
GET /admin/index=Controllers\Admin->index
GET /admin/login=Controllers\Admin->login

如何确保 F3 重定向到正确的 url?

我必须设置框架变量吗?

无需在您的配置中设置 BASE。 F3会自己找。