The site will always encounter times when it needs to be maintained, upgraded, or temporarily adjusted during operation.This is when users should see a friendly and informative prompt rather than a cold error page, which is crucial for the website's image and user experience.幸运的是,AnQiCMS 提供了一个非常便捷且灵活的“闭站”功能,让您能够轻松管理网站的维护状态,并向前台访客展示定制化的通知信息。
Next, let's take a look at how to set the "shutdown" status of the website in the AnQiCMS backend, as well as how to display specific notification information on the front end.
一、Enable website "shutdown" mode
Firstly, we need to enter the backend management interface of AnQiCMS.In the left menu bar, you will find an option for “Backend Settings”.Click to enter and you will see a configuration item named "Website Status" in the "Global Function Settings" area on the page.
When you need to put the website into maintenance mode, just switch this option from the default 'Normal' to 'Offline' status, and then click Save Settings.The operation is very intuitive, after completion, the website front-end will immediately display a default shutdown notice, letting visitors know that the website is currently under maintenance.
二、Set simple shutdown notification information
Switch to the shutdown state, you may want to display some more specific information, such as what the website is currently doing, when the access is expected to be restored, or provide an emergency contact.
On the "Global Feature Settings" page, below the "Website Status" option, there is usually a text box for the "Shut Down Notice".Here, you can directly input a concise text, for example: 'Dear visitor, the website is undergoing system upgrade and optimization, and is expected to resume normal access in half an hour. We apologize for any inconvenience caused to you!'This text will be directly displayed on the default closure page of the website's front-end.
This method is suitable for quickly publishing temporary notifications, with content mainly in plain text, simple and clear.
3. Customize a dedicated closed site prompt page
If you are not satisfied with the default plain text prompt and want to design a more brand-characteristic, content-rich landing page, AnQiCMS also provides a perfect solution. The system is in the template directory (usually located/template/您的模板名称/The folder contains a preset namederrors/close.htmlfile. This file is specifically used to display to visitors when the website is in a closed station state.
You can edit this as you would edit a normal page templateclose.htmlFile is being modified.Whether it is edited online through the "template design" feature in the background or directly modified on the server using FTP/SSH tools, it can be achieved.
in thisclose.htmlIn the file, you have a high degree of freedom.You can write a custom HTML structure, add exclusive CSS styles, even embed your website Logo, brand images, or a countdown timer to display the recovery time.An elegantly designed maintenance page can not only calm the user's mood but also maintain the brand image during maintenance, avoiding user churn.
It is worth mentioning that even custom onesclose.htmlPage, you can still use AnQiCMS template tags in it. For example, if you filled in "Site Shutdown Prompt" in the "Global Function Settings".close.htmlreference it in{% system with name="SiteCloseTips" %}Label it to call it out. In this way, you can perfectly combine the dynamic prompts in the background settings with the fixed page elements you have designed, making the notification information more flexible and varied.
Four, Practice and Tips
After you have completed the setup and modification of the closing page, it is recommended that you must carry out a test.Try accessing your website from different browsers or incognito mode to ensure that shutdown notifications are displayed as expected, and that the page layout and information are correct and accurate.
After all the maintenance work is completed, don't forget to go back to the "Global Function SettingsProvide clear and friendly exit notifications, which is an important element for improving user experience and maintaining brand image.
Common Questions (FAQ)
Does it affect search engine indexing when the website is in "shutdown" status?In most cases, AnQiCMS's shutdown feature will display a custom page on the front end, but the server will return a 200 OK status code, which means that search engines may still be able to crawl your shutdown page.For short-term maintenance (a few hours to a day), the impact is usually not significant.
Retry-AfterThe response header explicitly informs search engines that this is temporarily unavailable, not that the content has disappeared or been permanently closed, but the AnQiCMS backend shutdown feature does not provide a direct option to set the 503 status code by default, and additional configuration is required through the server's reverse proxy layer (such as Nginx/Apache).Can I add a form or contact information to the customized closed station page?Absolutely. Since
errors/close.htmlis a standard HTML template file, where you can add any HTML element, including contact forms (such as using the comment form tag provided by AnQiCMS), social media links, or phone numbers, etc.This is very useful for websites that need to communicate with users during maintenance.If I modify
errors/close.htmlthe file, what should I do if it does not take effect immediately on the front-end?If the front-end does not take effect immediately after modifying the template file, it is likely due to the caching mechanism of AnQiCMS or the cache of your browser itself. You can try the following operations:- 清理 AnQiCMS 后台缓存:在 AnQiCMS 后台管理界面的左侧菜单,找到“更新缓存”功能,点击执行清理缓存操作。
- Force refresh the browser:Try using in the browser:
Ctrl + F5(Windows) orCmd + Shift + R(Mac) to force refresh the page to clear the browser cache. - Check the file path:Ensure
errors/close.htmlThe file is indeed located in:/template/您的模板名称/errors/The directory and the filename are spelled correctly.