1
我目前正在使用无脂框架的项目。但是,无论何时我浏览到http://localhost/fatfree/admin/login/,F3都会在最后重定向到不带斜杠(“/”)的网址。我知道这很正常,但我被重定向到的网址无效。 F3重定向我http://localhosthttp//localhost/fatfree//admin/index(具体网址)无脂框架重定向到无效url
我运行PHP 7.1.0 + Apache的2.4在Windows 7 64位
配置/ 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
配置/ 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重定向到正确的网址?
我必须设置一个框架变量吗?