thinkphp URL version compatible

WBOY
Release: 2023-03-02 09:08:01
Original
1274 people have browsed it

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>
Copy after login
Copy after login

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

<code>/cook/details/1376 
</code>
Copy after login
Copy after login

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>
Copy after login
Copy after login

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

<code>/cook/details/1376 
</code>
Copy after login
Copy after login

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

Related labels:
source:php.cn
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!