Home >Backend Development >PHP Tutorial >thinkphp URL version compatible

thinkphp URL version compatible

WBOY
WBOYOriginal
2016-12-01 00:57:091311browse

The previous project used the TP3.1 framework, and the URL shared on WeChat is fixed and cannot be modified
For example:

<code>index.php?m=cook&a=topic&id=1376</code>

Now upgraded to 3.2, the URL has changed and cannot be parsed as above

<code>/cook/details/1376 
</code>

How to solve this?

Reply content:

The previous project used the TP3.1 framework, and the URL shared on WeChat is fixed and cannot be modified
For example:

<code>index.php?m=cook&a=topic&id=1376</code>

Now upgraded to 3.2, the URL has changed and cannot be parsed as above

<code>/cook/details/1376 
</code>

How to solve this?

What is the current url_modelset

The server pseudo-static rule writes 301 jump

You can only write url redirection, there is no other way

Statement:
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