During the operation of a website, we may encounter situations where the website needs to be temporarily closed, such as system upgrades, server migrations, major content adjustments, or simply brief technical maintenance.How can you clearly and friendly convey the current status of the website to visitors at this time, and provide necessary information, which is particularly important.AnQiCMS provides a comprehensive shutdown management function 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 function
When your website needs to be temporarily offline, you first need to enable the shutdown mode in the AnQiCMS backend.It is very intuitive to operate: 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".On this page, you will see a configuration item named "website status".By default, websites are usually in a "normal operation" state.Temporarily close the website, just switch this option to 'closed website' status.After making 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 notice page you have set up.
Customize the text content of the shutdown prompt
While 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 Function Settings" page, directly below the "Website Status" option, you will find a "Shutdown Tip" text box.This is where you can freely input or modify the brief information you want to display to users when the website is closed.
For example, you can write: 'The website is undergoing emergency maintenance and optimization and is expected to resume normal access within 24 hours.'Thank you for your patience and support!Please follow our social media for updates on the expected recovery time.”Through this text box, you can quickly and conveniently post the latest notifications without having to delve into the code.
Customize the appearance and content of the shutdown prompt page
It is only simple text prompts that may not meet the brand image and information delivery needs of all websites.If you want the closed station 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 the template files.
AnQiCMS names the template file of the shutdown prompt page aserrors/close.htmlIf you are using a 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/template/你的模板目录/mobile/errors/close.htmlFile, to ensure that mobile users can also see the closed station page that conforms to the mobile device browsing habits.
in thiserrors/close.htmlIn the template file, you can freely use HTML and CSS to design the page structure and adjust the style as you would with other pages.It is more important that you can also combine AnQiCMS template tags to dynamically introduce the 'site shutdown prompt' text set in the background to the page.In particular, you can use{% system with name="SiteCloseTips" %}This tag. Place it in the location where you want to display the background settings prompt 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" %}Dynamically displayed the prompt text configured on the backend, and through{% system with name="SiteName" %}Introduced the website name in the page title, and through{% contact with name='Email' %}and{% contact with name='Facebook' %}Introducing contact information and social media links. This way, no matter how you modify the closed station prompt content in the background or there are changes in the contact information, the page will automatically update without frequent modification of the template file, greatly improving operational efficiency.
Some practical suggestions
When customizing the exit prompt information, there are several tips to help you do better:
- Maintain transparency of information:Try to inform the user of the reason for the website shutdown and the expected time of recovery.Even if an exact time cannot be given, an approximate range can be provided (such as 'within a few hours' or 'later today'), which can effectively reduce users' anxiety and dissatisfaction.
- Provide alternative communication channels:Leave your customer service phone number, email, WeChat, or social media account on the closure page.Even if the website is inaccessible, users can find ways to contact you, handle urgent matters, or get the latest updates.
- Balance the brand image:Even if it is a closed station page, it should maintain the brand style and design elements consistent with your website's homepage, such as using the same Logo, colors, and fonts, so that users can feel the professionalism of the website rather than a cold error page.
- Pay attention to the SEO impact:For search engines, there is a fundamental difference between temporary closures (such as 503 status codes) and permanent closures (such as 404 status codes).AnQiCMS usually handles HTTP status codes during shutdown properly, ensuring that search engines understand that this is only temporary maintenance.When customizing page content, you can avoid using phrases like 'Page not found' that may mislead search engines.
The shutdown feature of AnQiCMS provides us with powerful flexibility, from simple text notifications to beautiful custom pages, all can be easily realized.Make good use of these features, not only can you deal with the situation when the website needs to suspend services 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.
Frequently Asked Questions (FAQ)
Q1: After the website is set to closed, will the shutdown prompt be displayed on any page accessed by the user?A1: Yes, once the website status is set to 'shutdown' in the AnQiCMS background, no matter which page the user tries to access on the website, the shutdown prompt information you configured will be displayed uniformly.This is to ensure that all users receive consistent notifications during website maintenance.
Q2: Can I add a dynamic countdown or image to the shutdown prompt page?A2: Absolutely. If you modify byerrors/close.htmlThe template file can be used to customize the shutdown prompt, where you can add any HTML elements, CSS styles, and JavaScript code.This means you can insert a brand logo, background image, contact information, even a website recovery countdown based on JavaScript.
Q3: Will SEO be affected during the website shutdown?A3: If it is a short-term, maintenance information提示的闭站(AnQiCMS usually returns a 503 Service Unavailable status code), search engines usually consider it a temporary situation, and rescan and update the index after the site is restored, so the negative impact on SEO in the short term is usually limited.But if the site is closed for a long time and does not provide clear maintenance information, it may have a negative impact on the ranking of the website.Provide clear information in the closed site prompt and ensure that the website can be accessed normally after recovery, which is the key to reducing SEO risks.