Get the App
SLTechnology News&Howtos  ›  Servers  › 

How to set up custom 404 for pagoda panel

Shulou Source: shulou.com Published: 2022-06-02 05:59:59 10月28日 Update

How does the pagoda panel set up a custom 404 page? As we all know, the default 404 page is not friendly to search engines, so how to modify the default 404 page through the pagoda panel to make it our custom 404 page?

1. Enter the pagoda panel and find the corresponding website-Settings-configuration file. We can see that the default 404 page is 404.html.

2. You only need to make your own page, name it 404.html, and upload it to the root directory of the website.

3, if the site source code with 404 pages, do not need the default page, you can comment out the default, 502 page the same reason.

Find the following code

Error_page 404 / 404. Htmlbomacherism page 502 / 502.html

Just add the "#" symbol in front of it.

# error_page 404 / 404.html / 502.html

This completes the setting of the custom 404 page of the site, takes effect in time after saving, and restarts if not. In this way, the default 404 and 502 pages of the pagoda panel have been changed to the original theme.

Tags: Page pagoda panel website no theme code original engine search engine file root directory comment source code symbol truth belt production search configuration Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno MySQL macOS Huawei vpn Shulou Technology