Home > PHP Framework > ThinkPHP > Solve the problem of 404 NOT FOUND after Thinkphp5+ is deployed to Pagoda LNMP

Solve the problem of 404 NOT FOUND after Thinkphp5+ is deployed to Pagoda LNMP

藏色散人
Release: 2021-02-23 09:20:32
forward
3397 people have browsed it

下面由thinkphp教程栏目给大家介绍解决Thinkphp5+部署到宝塔LNMP后404 NOT FOUND的问题,希望对需要的朋友有所帮助!

 Solve the problem of 404 NOT FOUND after Thinkphp5+ is deployed to Pagoda LNMP

宝塔面板引入Thinkphp 5 等框架式  伪静态导致404

在网站- 域名设置 - 伪静态 处添加代码:

if (!-d $request_filename){
set $rule_0 1$rule_0;
}
if (!-f $request_filename){
set $rule_0 2$rule_0;
}
if ($rule_0 = "21"){
rewrite ^/(.*)$ /index.php/$1 last;
}
Copy after login

The above is the detailed content of Solve the problem of 404 NOT FOUND after Thinkphp5+ is deployed to Pagoda LNMP. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:csdn.net
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