As an experienced website operations expert, I know that it is crucial to properly handle user experience during website maintenance.安企CMS(AnQiCMS)as an efficient and feature-rich enterprise-level content management system, also provides an intuitive and flexible solution in this aspect.Today, let's delve into the template page that users will see after setting the 'Website Status' to 'Offline' in the Anqi CMS backend.

核心机制解析:安企CMS闭站功能的工作原理

Firstly, let us clarify the triggering mechanism of the "shutdown" function of the "Security CMSIn the backend management interface of AnQi CMS, you can find the option 'Website Status' under 'System Settings' in 'Global Settings'.When you switch this option from 'Normal Operation' to 'Shutdown', the system will take effect immediately, preventing all non-admin users from accessing the normal content of the website.

The design of this feature is intended to deal with situations such as major maintenance, upgrade, data migration, or temporary shutdown due to unexpected issues on the website.It can effectively prevent users from accessing the website in an unstable or incomplete state, thereby damaging the user experience and brand image.

用户会看到哪个模板页面?——errors/close.html

So, when a website is in "shutdown" status, which page will the user see? The answer is:errors/close.html.

According to the template design conventions of Anqi CMS, all pages related to errors or special states are uniformly stored in the current theme template directory.errors/Among them,errors/close.htmlIt is a prompt page specially designed for the "closed site" status. This means that regardless of whether your website theme is the "default template" or any custom theme you create, as long as the website is set to closed, the system will automatically load the current active theme template folder inerrors/close.htmlThis file should be present.

It is worth mentioning that the Anqi CMS also supports multi-end adaptation. If your website template has chosen the "code adaptation" or "computer + mobile" mode, and your theme template includesmobile/Index, when the mobile user closes the station, the system will try to loadmobile/errors/close.htmlto ensure that a good station prompt experience can be provided on different devices.

In-depth analysiserrors/close.htmlCustomize your station prompt:

errors/close.htmlThis is not an immutable static page. As a content management system, Anqi CMS gives website operators full flexibility to customize this page.

  1. Content customization:In the "Global Settings" > "System Settingserrors/close.htmlPage call display. For example, using{% system with name="SiteCloseTips" %}This label will display the custom prompt information you input in the background to the user. This allows you to quickly adjust the shutdown notification without modifying the code.

  2. Customize layout and style:For operators or developers with some front-end experience, you can directly editerrors/close.htmlFile itself.This means you can fully control the HTML structure, CSS styles, and JavaScript interactions of the page.

    • Add the brand's logo and color scheme to maintain brand consistency.
    • Embed a beautiful image or animation to enhance the visual experience.
    • Provide social media links or customer service contact information for easy communication with users.
    • Even a countdown timer can be added to announce the return time of the website.

Through these custom options,errors/close.htmlIt is not just a cold system notification, but can also extend your brand image and serve as a bridge for communication with users.

Why is it necessary to design a landing page carefully?

The well-designed landing page is crucial for website operation:

  • Enhance user experience:Avoid users from seeing the browser's default error page (such as "Unable to access this site") when the website is unavailable. This not only looks professional but also reduces user confusion and frustration.An informative page can make users feel respected and informed.
  • Maintain brand image:Even during maintenance, it is important to maintain the consistency of the brand image.A close station page with brand identification and style, which can enhance the user's awareness of the brand and convey a professional and responsible attitude of the website.
  • Optimize SEO performance:From a technical perspective, a good landing page should return an HTTP status code503 Service UnavailableAlthough the Anqi CMS does not directly mention the HTTP status code of the shutdown page in the documentation, a professional CMS would usually handle this.503The status code will inform search engines that the website is temporarily unavailable rather than permanently removed, which helps to quickly restore the original search engine rankings after the website recovers, reducing SEO losses.
  • Effective communication:The shutdown page is a platform that informs users of the website's situation, provides estimated recovery time or alternative solutions (such as temporary announcement links, customer service contact information), and helps manage user expectations.

操作指南:如何设置和优化闭站页面

设置安企CMS的闭站页面是一个简单的过程:

  1. Log in to the backend:使用管理员账号登录您的安企CMS后台。
  2. Navigate to System Settings:Find 'Global Settings' in the left menu bar, click to expand and select 'System Settings'.
  3. Configure shutdown status and prompts:On the "System SettingsImmediately, enter the maintenance notification, expected recovery time, contact information, and other information you want to display to the user in the "Shutdown Prompt" text box below.
  4. Save settings:Click the "Save" button at the bottom of the page to make the configuration take effect.
  5. (Optional) Customize the template file: If you need more complex layouts or features, you can find and edit the current theme under the "template design" feature via FTP or the backend.errors/close.htmlfile. You can use the syntax of Django template engine, combined with background settings,SiteCloseTipsor other system variables, to create a unique and artistic closure page.

Summary

The 'shutdown' function of Anqi CMS,配合可高度定制的errors/close.htmlTemplate page, providing a powerful and flexible tool for website operators to handle temporary shutdown needs during website maintenance in a professional and user-friendly manner.By making simple backend settings and possible template modifications, you can maintain good communication with users during website maintenance, uphold brand image, and minimize the negative impact on SEO.


Common Questions (FAQ)

1. Can I set the shutdown page to a custom template path other than the default?errors/close.html?The template conventions of AnQi CMS are relatively fixed,.errors/close.htmlIt is the default specified closed station template path of the system, which cannot be directly changed to another path in the background. But you can modifyerrors/close.htmlThis file, by introducing other local templates or using more complex template logic, can achieve a similar effect. Essentially, all customizations will be centered arounderrors/close.htmlthis core file.

2. English users on the mobile end will see which page?If your website template supports multi-platform adaptation (for example, you have selected "code adaptation" or "computer + mobile" mode), and there is an existing theme under the current thememobile/errors/close.htmlThis file, so mobile users will see the mobile endpage when closing the site. If it does not exist, it will fallback to the PC endpage.errors/close.htmlpage. It is recommended to prepare an adaptive offline page for mobile devices as well to ensure **experience.

3. What key information should be included in the offline page content?An excellent closure page should at least include the following key information: clear maintenance notifications (indicating the current status of the website), expected recovery time (providing specific date and time), a brief apology message, brand logo and name, as well as necessary contact information (such as customer service phone number, email, or social media links) so that users can contact you in emergency situations.