Get the App
SLTechnology News&Howtos  ›  Development  › 

How to quickly realize 404 page skip by Thinkphp

Shulou Source: shulou.com Published: 2022-06-02 02:51:22 10月03日 Update

This article mainly explains "Thinkphp how to quickly achieve 404 jump page", the content of the article is simple and clear, easy to learn and understand, the following please follow the editor's ideas slowly in depth, together to study and learn "Thinkphp how to quickly achieve 404 jump page" bar!

Thinkphp makes 404 jump pages.

There are many thinkphp 404 page making methods on the Internet, but most of them are too tedious and annoying, so I share the most convenient 404 production methods for you, as follows.

Add a configuration item to the config configuration file in the public directory of thinkphp:

'TMPL_EXCEPTION_FILE' = >' Public/404.html'

Create a 404.html in the Public folder as follows

Tags: Content pages production learning production methods documents methods configuration convenient annoying simple tedious accomplished great work that is ideas situations folders articles and more Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Shulou Technology vpn OPPO Reno Linux MariaDB