How to view the template file path of the system's default 404, 500 error pages and shutdown prompt page?

Calendar 👁️ 66

As an experienced website operation expert, I know that in the daily operation of the website, we always hope that everything goes smoothly, but unexpected situations are always hard to avoid.Whether the user visits a non-existent page, or the backend server has an occasional failure, or the website needs to be temporarily maintained, how to elegantly handle these special situations is directly related to user experience and brand image.AnQiCMS (AnQiCMS) is well-versed in this, providing a highly flexible template mechanism to customize these key pages.

Today, let's delve into how to find and customize your 404, 500 error pages and shutdown notice page template file paths in AnQiCMS to ensure your website looks professional and elegant in any state.

Understand AnQiCMS template structure: the starting point of everything

Firstly, it is crucial to accurately locate the template files of these special pages, and understanding the organization structure of AnQiCMS template files is key. The AnQiCMS template system is designed to be very intuitive, with all front-end template files stored centrally in the root directory./templateIn the folder. Each independent website theme will have a dedicated folder named after the theme in this directory. For example, if you are using a theme nameddefaultThe default theme, so your template file is located at/template/default/path.

AnQiCMS to adapt to the habits of different developers, provides two main template organization modes:Folder organization modeandFlat file organization modeIn these modes, there are subtle differences in the template paths of error pages and shutdown pages, but the core logic and file naming rules remain consistent.

Accurately locate the template files for 404, 500 error pages and shutdown prompt pages.

Next, we will reveal the template file paths for these key pages one by one.

404 Error Page: Guide lost users to find their way

When the user tries to access a non-existent URL on your website, a 404 (Not Found) error page will appear in front of them.This is not only a notification that the page does not exist, but also an excellent opportunity to turn potential disappointment into a positive experience.By carefully customizing, you can guide users back to the homepage, browse popular content, even provide search functionality, greatly enhancing user retention rate.

In AnQiCMS, the template path of the 404 error page varies according to the template organization mode you choose:

  • If you are usingFolder organization mode, you will find it in the current theme directory:/errors/404.html
  • If your theme usesFlat file organization mode, then the template file is:/errors_404.html

Customize this page, you can add website brand elements, friendly copy, search box, or recommended content, so that users can feel the warm service even if they encounter dead links.

500 Error Page: Maintain professionalism during faults

The 500 (Internal Server Error) error usually means that an unexpected problem has occurred on the server, such as a program crash, database connection failure, etc.Although such errors usually require the intervention of the backend technical team to be resolved, a friendly 500 error page can at least soothe the user's emotions and provide necessary support information, avoiding the user's panic due to seeing stiff error messages.

In AnQiCMS, the template file path for the 500 error page is also clear:

  • InFolder organization modeBelow, the path is:/errors/500.html
  • InFlat file organization modeBelow, the path is:/errors_500.html

Remember please

Related articles

How to specify the file path of the public code snippet included when using the `include` tag in the template?

As an experienced website operations expert, I know the importance of an efficient content management system (CMS) for website operations.AnQiCMS (AnQiCMS) provides a solid foundation for us to build various websites with its flexibility and powerful template features.Today, let's talk about one of the very practical features that can greatly improve template development efficiency - the `include` tag, especially how the file path is specified when referencing common code snippets, which is often a place where beginners and even experienced developers may feel confused.Why choose to use

2025-11-06

Which file path variables are available when customizing the static rules?

Hello! As an old soldier who has been deeply involved in website operations for many years, I know that a flexible and powerful static mechanism is crucial for the website's search engine optimization (SEO) and user experience.AnQiCMS (AnQi CMS) performs very well in this aspect, it not only provides a variety of out-of-the-box static mode, but also allows for deep customization of URL structure, which undoubtedly provides great convenience for refined operation.Today, let's delve into the discussion of which key file path variables we can flexibly use when customizing pseudo-static rules in Anqi CMS

2025-11-06

How to set up the background to view or modify the specific URL address of the website logo image?

As an experienced website operations expert, I am well aware of the importance of the website logo to the brand image.It is not only the 'front door' of the website, but also a key element for users to identify your brand.In a powerful content management system like AnQiCMS, managing the website logo image address is a fundamental and frequent operation.Today, let's delve into how to easily view or modify the specific URL address of the website logo image through backend settings.

2025-11-06

Where is the actual storage path of these image resources after I upload them to the background?

As an experienced website operation expert, I know the importance of image resource management for website performance, SEO, and even user experience.AnQiCMS (AnQiCMS) has made many meticulous designs in this aspect, allowing content operators to manage these valuable visual assets more efficiently.Today, let's delve deeply into a question that concerns everyone: 'Where are the actual storage paths of the image resources after I upload them to the backend?'}]

2025-11-06

Where is the AnQiCMS scheduled task script (such as `start.sh`) usually stored?

As an experienced website operations expert, I know that the stable operation of every CMS system is inseparable from the silent support of its core components.Today, let's talk about a seemingly simple but crucial file in AnQiCMS - the scheduled task script `start.sh`, where is it hidden, and what role does it play in the daily operation and maintenance of AnQiCMS.--- ### Revealing AnQiCMS: The Hidden Location of the `start.sh` Scheduled Task Script For AnQiCMS users, whether it is for the first deployment or daily maintenance

2025-11-06

Can I view the path of the template file on the server directly through the AnQiCMS background online template editing feature?

As an experienced website operations expert, I am well aware of the importance of template management for website personalization and operational efficiency.AnQiCMS (AnQiCMS) boasts its high efficiency and flexibility, which is favored in the content management field. Its template editing function on the back-end provides great convenience for content operators.TodayUnlocking AnQiCMS Template Path

2025-11-06

How to get the full URL address of the current page being accessed in the template?

## Deep Analysis: How to cleverly get the complete URL address of the current page in Anqi CMS template As an experienced website operation expert, I am well aware that it is a common and important need to accurately obtain the complete URL address of the current page in daily work.In order to set the `canonical` tag, share on social media, pass parameters, or perform data statistics, the accurate URL of a page is core information.

2025-11-06

Why is my custom URL alias not working, what path configurations should I check?

As a senior website operations expert, I fully understand the confusion and anxiety you feel when the custom URL alias you carefully set up does not work as expected.A clean, meaningful URL structure is crucial for a website's SEO performance and user experience.AnQiCMS (AnQiCMS) was designed with flexibility in URLs and SEO friendliness in mind, but to make these features work, we do indeed need to ensure that the configuration of several key paths is correct.Today, let's delve into the discussion when your custom URL alias is "**"

2025-11-06