The website will always encounter times when it needs to be maintained, upgraded, or temporarily adjusted.At this time, it is crucial for users to see a friendly and informative prompt instead of a cold error page, which is very important for the website's image and user experience.Fortunately, AnQiCMS provides a very convenient and flexible "shutdown" feature, allowing you to easily manage the maintenance status of your website and display customized notification information to front-end visitors.
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.
One, enable the website "shutdown" mode
Firstly, we need to enter the AnQiCMS backend management interface.In the left menu bar, you will find an option for "background settings".Click to enter, in the "Global Function Settings" area of the page, you will see a configuration item named "Website Status".
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.
Two, set simple shutdown notification information
After switching to the shutdown status, you may want to display some more specific information, such as what the website is currently doing, when it is expected to resume access, or provide an emergency contact number.
On the "Global Function Settings" page, next to the "Website Status" option at the bottom, there is usually a text box for the "Shutdown Tip".HereThis 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, the content is mainly plain text, simple and clear.
3. Customize a dedicated closed station prompt page.
If you are not satisfied with the default plain text prompt and want to design a more brand-specific, content-rich closed station page, AnQiCMS also provides a perfect solution. The system is located in the template directory (usually located in/template/您的模板名称/A folder contains a file namederrors/close.html. This file is specifically used to display to visitors when the website is in a closed station status.
You can edit this like a normal page templateclose.htmlModify the file. Whether it is through the "template design" feature in the background for online editing, or through FTP/SSH tools to directly modify the file on the server, it can be achieved.
in thisclose.htmlIn the file, you have a high degree of freedom. You can write custom HTML structures, add exclusive CSS styles, even embed your website Logo, brand images, or a countdown timer to display the recovery time.A well-designed maintenance page can not only soothe user emotions but also maintain the brand image during maintenance, avoiding user loss.
It is worth mentioning that even custom onesclose.htmlPage, you can still use the AnQiCMS template tags in it. For example, if you filled in 'shutdown prompt' in theclose.htmlpass through{% system with name="SiteCloseTips" %}Label it to call it out. This way, you can perfectly combine the dynamic prompts in the background settings with the fixed elements you have designed on the page, making the notification information more flexible and variable.
Four, Practice and Tips
After you have completed the setup and modification of the closure page, it is recommended that you must test it.Try accessing your website from different browsers or incognito mode to ensure that the site closure notifications display as expected and that the page layout and information are all correct.
After all the maintenance work is completed, don't forget to go back to the 'Global Function Settings' page on the AnQiCMS backend, switch the 'Website Status' back to 'Normal', and restore your website to open for public access.Provide clear and friendly exit notifications, which is an important aspect for improving user experience and maintaining brand image.
Frequently Asked Questions (FAQ)
Does it have an impact on search engine inclusion when the website is in a 'closed site' 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 the search engine 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.If your website needs to be down for a long time (days even longer), it is recommended to consider a more professional SEO maintenance strategy, such as configuring the server to return a 503 Service Unavailable status code, and coordinating
Retry-AfterThe response header clearly informs the search engine that this is temporarily unavailable, not that the content has disappeared or permanently closed, but the AnQiCMS backend shutdown feature does not provide a direct option to set the 503 status code by default, and it needs to be configured through the reverse proxy layer of the server (such as Nginx/Apache).Can I add a form or contact information to the custom closed station page?Absolutely. Because
errors/close.htmlIs a standard HTML template file, where you can add any HTML element, including contact forms (such as using the AnQiCMS provided message form tags), social media links, or phone numbers, etc.This is very useful for websites that need to keep in touch with users during maintenance.If I modify
errors/close.htmlthe file, what should I do if it does not take effect on the front end immediately?If the front-end does not take effect immediately after modifying the template file, it is likely due to the AnQiCMS cache mechanism or the cache of your browser itself. You can try the following operations:- Clear AnQiCMS backend cache:In the left menu of AnQiCMS backend management interface, find the 'Update Cache' feature, click to execute the cache clearing operation.
- Force a browser refresh:In the browser, try to use
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.