During the operation of the website, we sometimes have to temporarily close the website for maintenance due to system upgrades, data optimization, or feature adjustments.How can you clearly and friendlily convey this status to visitors to avoid user confusion or loss, which is particularly important.A safe CMS provides a set of built-in solutions for you to easily customize the prompt information during website maintenance shutdown.
Understand the closed-site mechanism of Anqi CMS.
The shutdown feature of AnQi CMS is designed to be very intuitive and flexible.When you enable the closed site mode, the system will automatically intercept all access requests to the website content and instead display a pre-set prompt page.This means that, no matter which page the visitor tries to access, they will see the exclusive information you have prepared for the maintenance period.This unified entry ensures the accuracy and consistency of information transmission.
Enable shutdown mode and set basic prompts
To put the website into maintenance mode, you first need to log into the Anqi CMS admin interface.In the left navigation bar, find and click "Background Settings", then select "Global Function Settings".
On this page, you will find an option called "Website Status".By default, it is usually "operational". Please switch to "closed".Once you choose "shut down", the website will immediately enter maintenance mode.
Immediately below the "Website Status", a text box for the "Shutdown Tip" will appear.Here, you can enter a brief message that will be displayed to visitors during maintenance.For example: 'The website is under maintenance and is expected to resume normal access in a few hours. Thank you for your patience!'This text will be the default shutdown prompt, suitable for those who seek quick setup and have no special requirements for page style.
Deeply customize the shutdown prompt page
If simple text prompts do not meet your rich needs for brand image or information delivery, Anqi CMS also allows you to deeply customize the entire offline prompt page.This means you can keep the page design consistent with the website style, and even add more detailed information or interactive elements.
The safety CMS defines the prompt page when shutting down as the current template directoryerrors/close.htmlFile. You can edit it online through the "template design" feature in the background, or directly modify the file through tools such as FTP/SSH.
in thiserrors/close.htmlIn the file, you can freely add HTML structure, CSS styles, and even JavaScript effects, just like designing a regular page. For example, you can:
- Add an eye-catching website logo and brand sloganEnsure that the maintenance page also reflects the brand image.
- Provide more detailed maintenance reasons and estimated durationReduce user anxiety.
- Embed social media links or customer service contact informationFor users to get the latest updates or seek help.
- Design an aesthetically pleasing progress bar or animation effectTo enhance the visual appeal of the page.
To make the prompt information more dynamic and practical, Anqi CMS provides a variety of template tags for you to easily retrieve website configuration information. Inerrors/close.htmlIn the template file, you can use these tags:
- Display website name: Use.
{{ system with name="SiteName" }}. - Show website logo: Use.
<img src="{% system with name="SiteLogo" %}" alt="{% system with name="SiteName" %}" />. - Display the content you entered in the "Offline Notice" text box in the background: Use.
{{ system with name="SiteCloseTips" }}Thus, you can quickly change the core prompt without having to edit the template file each time. - Display the current time or the expected recovery time.: Combined
{% now "2006-01-02 15:04:05" %}Such time formatting tags, you can display the time when the website enters maintenance, and even manually add custom parameters in the "Global Feature Settings" (for example预计恢复时间Then proceed{{ system with name="预计恢复时间" }}to display. - Provide contact informationUtilize
{{ contact with name="Cellphone" }}or{{ contact with name="Email" }}Tags, directly call the contact information set in the background.
Through these tags, you can build a professional and informative maintenance prompt page, effectively managing user expectations.
Good practices during maintenance
It is crucial to provide clear and considerate prompts when the website is in maintenance mode.First, the information should be concise and clear, directly informing the user of the website maintenance and the expected recovery time.Secondly, maintain brand consistency, even when maintaining pages, the visual style of the website should be followed.If the maintenance time is long, consider providing an alternative information access channel, such as a link to social media updates.It is most important to remember to change the 'website status' back to 'normal operation' in time after maintenance, so that visitors can recover access to the website as soon as possible.
Summary
The shutdown feature of Anqi CMS provides great convenience and flexibility for website maintenance.Whether it is a simple text prompt or a carefully designed customized page, it can help you maintain a professional image during website maintenance, effectively manage user experience, and reduce unnecessary troubles.Make good use of this feature, which will make your website operation smoother and more efficient.
Frequently Asked Questions (FAQ)
Q1: If I haven't customized during the website shutdown,errors/close.htmlwhat will be displayed in the file?A1: If you haven't customizederrors/close.htmlThe file, the system will automatically display the text content you entered in the 'Shutdown Prompt' text box under 'Global Function Settings'.If the text box is also empty, the system will display a default, very brief general shutdown prompt.
Q2: Will enabling the site shutdown feature affect search engine indexing?A2: Short-term site maintenance usually will not have a long-term negative impact on search engine inclusion. To better inform the search engine that this is a temporary maintenance and not a permanent shutdown, it is recommended to use customizederrors/close.htmlReturn through the HTTP response header in the page503 Service UnavailableThe status code should be provided along with the expected recovery time, but this requires more advanced server configuration.The default shutdown feature of AnQi CMS will display a page, but its HTTP status code may still be 200. At this time, a clear page prompt can help search engines understand the temporary status of the website.
Q3: Can you set a timer to turn on or off the closed station mode?A3: Currently, the shutdown mode of the AnQi CMS backend management interface is manually operated.The built-in "Time Factor-Scheduled Publishing Feature" is mainly used for scheduling the publication of content (such as articles), rather than for switching the overall state of the website.Therefore, you need to manually enter the background at the beginning and end of maintenance.