During the operation of the website, we sometimes encounter situations where the website needs to be temporarily closed, such as system upgrades, server migration, major content adjustments, or simply brief technical maintenance.How to clearly and friendly convey the current state of the website to visitors at this time, and provide necessary information, is particularly important.AnQiCMS provides comprehensive shutdown management features for website administrators, allowing us to easily set the shutdown status of the website and highly customize the display of shutdown prompt information.
Enable website shutdown feature
When your website needs to be temporarily offline, you first need to enable the shutdown mode in the AnQiCMS backend.It operates very intuitively: After logging in to the backend, please find the 'Backend Settings' option in the left menu, and then click to enter the 'Global Function Settings'.In this page, you will see a configuration item named "Website StatusThe website is usually in "normal operation" by default.To temporarily close the website, just switch this option to "shutdown" status.After completing this change and saving the settings, when users try to access your website again, they will not see the normal content but will instead see the shutdown prompt page you have set.
Customize the text content of the shutdown prompt
At the same time as enabling the closed site status, AnQiCMS also allows you to directly edit the prompt text displayed on the closed site page in the background.On the "Global Feature Settings" page, directly below the "Website Status" option, you will find a "Shutdown Prompt" text box.Here is the place where you can freely input or modify the brief message you want to display to the user when the website closes.
For example, you can write: "The website is undergoing emergency maintenance and optimization and is expected to resume normal access within the next 24 hours."}]Thank you for your patience and support!English or dear user, in order to provide you with better service, our website is undergoing system upgrade and may be inaccessible during this period.The expected recovery time, please follow our social media updates.This kind of prompt.Through this text box, you can quickly and conveniently post the latest notifications without in-depth code modification.
Customize the appearance and content of the closed page
It may not be sufficient to simply use text prompts to meet the brand image and information communication needs of all websites.If you want the closed page to have a more professional visual effect, display more dynamic information, or maintain consistency with the overall design style of the website, AnQiCMS also provides deeper customization capabilities—by modifying template files.
AnQiCMS names the template file of the closed pageerrors/close.html. If you are using the default template or a customized template, you usually can find it in your template folder (for example/template/default/or/template/你的模板目录/) undererrors/Find it in the subdirectory. If your website has enabled a separate mobile template, don't forget to check and modify it as well./template/你的模板目录/mobile/errors/close.htmlFiles, to ensure that mobile users can also see a closed station page that conforms to the browsing habits of mobile devices.
in thiserrors/close.htmlIn the template file, you can freely use HTML and CSS to layout the page structure and adjust the style, just like designing other pages.It is also more important that you can combine AnQiCMS template tags to dynamically introduce the 'Site Closed' prompt text set in the background to the page.{% system with name="SiteCloseTips" %}This label. Place it at the location where you want to display the background settings hint text, for example:
<!DOCTYPE html>
<html lang="zh-CN">
<head>
<meta charset="UTF-8">
<title>网站维护中 - {% system with name="SiteName" %}</title>
<style>
body { font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; text-align: center; padding: 50px; background-color: #f4f4f4; color: #333; }
.container { max-width: 600px; margin: 0 auto; background-color: #fff; padding: 30px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
h1 { color: #0056b3; margin-bottom: 20px; }
p { line-height: 1.6; margin-bottom: 25px; }
.contact-info { font-size: 0.9em; color: #666; }
</style>
</head>
<body>
<div class="container">
<h1>网站暂时关闭</h1>
<p>{% system with name="SiteCloseTips" %}</p>
<p>给您带来的不便,我们深表歉意。请稍后刷新或关注我们的最新动态。</p>
<div class="contact-info">
<p>如有紧急事宜,请联系:<a href="mailto:{% contact with name='Email' %}">{% contact with name='Email' %}</a></p>
<p>您也可以访问我们的社交媒体:<a href="{% contact with name='Facebook' %}" target="_blank">Facebook</a> | <a href="{% contact with name='Twitter' %}" target="_blank">Twitter</a></p>
</div>
</div>
</body>
</html>
In the above example, we not only through{% system with name="SiteCloseTips" %}The text displayed dynamically shows the prompt text configured on the back-end, and it also passes through{% system with name="SiteName" %}The website name is introduced in the page title, and it also passes through{% contact with name='Email' %}and{% contact with name='Facebook' %}Added contact information and social media links.This way, no matter how you modify the shutdown prompt content on the back end or change the contact information, the page will update automatically without the need to frequently modify the template files, greatly improving operational efficiency.
Some practical suggestions
When customizing the closed station prompt information, there are several tips to help you do better:
- Maintain transparency of information:Inform users of the reason for the website closure and the expected time of recovery.Even if an exact time cannot be provided, an approximate range can be offered (such as 'within a few hours' or 'later today'), which can effectively reduce the user's anxiety and dissatisfaction.
- Provide alternative communication channels:Leave your customer service phone number, email, WeChat, or social media account on the closing page.So, even if the website is inaccessible, users can still find a way to contact you, handle emergencies, or get the latest updates.
- Maintain brand image:Even for error pages, the brand style and design elements should be consistent with your website's homepage, such as using the same Logo, colors, and fonts, to give users a sense of the professionalism of the website rather than a cold error page.
- Note SEO impact:For search engines, there is a fundamental difference between temporary shutdowns (such as 503 status codes) and permanent shutdowns (such as 404 status codes).AnQiCMS usually handles the HTTP status codes during shutdown properly, ensuring that search engines understand that this is just temporary maintenance.When customizing page content, you can avoid using phrases such as 'Page does not exist' that may mislead search engines.
The shutdown feature of AnQiCMS provides powerful flexibility, from simple text notifications to exquisite custom pages, all can be easily realized.Wisely utilize these features, not only can you handle the situation when the website needs to suspend service properly, but you can also maintain good user relationships, show the professionalism and care of the website, and lay a good foundation for the continuous and healthy development of the website.
Common Questions (FAQ)
Q1: Will users see a shutdown notice when visiting any page after the website is set to closed?A1: Yes, once the website status is set to "closed" in the AnQiCMS backend, no matter which page of the website the user tries to access, the统一 configured shutdown prompt information will be displayed.This is to ensure that all users receive consistent notifications during the website maintenance period.
Q2: Can I add a dynamic countdown or image to the closed station prompt page?A2: Absolutely. If you modify througherrors/close.htmlCustomize the shutdown prompt with template files, and you can add any HTML elements, CSS styles, and JavaScript code to it.This means you can insert a brand logo, background image, contact information, and even a JavaScript-based website recovery countdown timer.
Q3: Will SEO be affected during the website shutdown period?