Home > Backend Development > PHP Tutorial > thinkphp5 - thinkphp路由

thinkphp5 - thinkphp路由

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 20:09:37
Original
1332 people have browsed it

thinkphp路由会根据规则进行重定向,不得不说有时候uri很难看。
但是有没有办法实现路径上的不重定向。
比如\think\Route::register('abc','/about/abc');
有没有办法实现访问example.com/abc等效于example.com/about/abc(不进行重定向)
之前忘记说了thinkphp5.0

回复内容:

thinkphp路由会根据规则进行重定向,不得不说有时候uri很难看。
但是有没有办法实现路径上的不重定向。
比如\think\Route::register('abc','/about/abc');
有没有办法实现访问example.com/abc等效于example.com/about/abc(不进行重定向)
之前忘记说了thinkphp5.0

多看文档,
http://www.kancloud.cn/manual/thinkphp/1707

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template