In website operation, we may encounter situations where we need to temporarily shut down the website, such as system maintenance, major upgrades, data migration, or dealing with unexpected security incidents.Regardless of the reason, directly allowing users to access a blank page or an error page will severely affect user experience and even damage the brand image.At this time, it is particularly important to clearly display a friendly prompt message to the visitor.
AnQiCMS (AnQiCMS) is well-versed in this, providing us with a very convenient and flexible website shutdown prompt solution, allowing us to easily deal with such situations.
一、Website shutdown, clearly informing is the first step
When we decide to temporarily close the website, the most basic need is to make sure all visitors see a clear notification.The "Website Status" toggle function and "Shut Down Tip" content editing box are provided directly in the background settings of Anqi CMS.
Switch website status:You can find it in the Anqi CMS backend,“Backend Settings”the menu under“Global Function Settings”. On this page, you will see a name called“Website Status”The option. By switching it from "On" to"Off Station"Your website will immediately enter the shutdown mode. This means that all users visiting your website will only see the shutdown prompt message you have set.
Set shutdown prompt message:Immediately below the "Website Status" option, there is usually oneStation Closure NoticeThe text input box. Here is where you write your message to visitors. You can enter some brief and important information according to the actual situation, such as:
- The website is undergoing system upgrade, expected maintenance time.
- Thank you for your patience, the service will be restored soon.
- If you need urgent assistance, please contact our customer service (and provide contact information).
Through these two simple settings, even if your website is doing "behind-the-scenes work", visitors will receive clear feedback, avoiding confusion and churn.
English, customize: Create a professional closing page
If displaying a simple text does not meet your needs, for example, you want the closed page to maintain the brand style or include more complex layouts and images, Anqi CMS also provides powerful template customization capabilities. The system will default to searching for a file namederrors/close.htmlThe template file to display the closed page. This means you can completely control the design and content of this page.
Create or modify
errors/close.htmlTemplate File:In your security CMS template directory, you can find (or create)errors/close.htmlThis file.This file is a page template specifically designed for displaying to users in a closed station state.You can add HTML structure, CSS style, even JavaScript script here, just like designing a regular page, to ensure that the standalone page also conforms to your brand style.Reference the off-site prompt content in the template:Even if you have customized
errors/close.htmlTemplate, you can still flexibly refer to the content in the input box of the "Shut Down Prompt" under the "Global Function Settings" in the background. By using the system tags of Anqi CMS, you can dynamically display the text input in the background on your customized page:{# 在 errors/close.html 模板中,您可以使用以下代码获取后台设置的闭站提示文本 #} <div> <p>亲爱的访客:</p> <p>{% system with name="SiteCloseTips" %}</p> <p>感谢您的理解与支持!</p> </div>This way, you can conveniently modify the prompt text through the background and flexibly control the overall layout and visual effects of the page through template files, achieving a perfect combination of dynamic content updates and design.
三、Operation Recommendations and Precautions
- Pre-Planning:Be sure to prepare the shutdown提示 contents and customized page in advance before deciding to close the station, avoid last-minute preparation.
- Transparency of Information:In the shutdown prompt, try to inform the user of the reasons for the shutdown, the expected recovery time, and possible alternatives (such as social media accounts, customer service phone numbers, etc.), so that the user feels respected.
- Testing acceptance:Before formal shutdown, it is recommended to switch the website status in the development or testing environment first, to check if the shutdown page can be displayed normally and if the content is accurate and free of errors.
- Search engine friendly:For short-term closures (a few hours to a day), search engines usually understand.The shutdown feature of Anqi CMS has considered this point in design, and will return the corresponding status code (such as 503 Service Unavailable) to search engines to inform them that this is only a temporary situation and should not affect normal inclusion and ranking.If the downtime is long, it is recommended to pay more attention to the website's indexing after recovery.
The shutdown feature of AnQi CMS, from simple text prompts to in-depth template customization, provides multi-level solutions to help you maintain a professional image during website maintenance and maintain trust with users.
Common Questions (FAQ)
1. I entered HTML code in the "Shutdown Tip" on the backend, why is the front end displaying the original code instead of the rendered effect?The " + "闭站提示" + " input box is mainly used to enter plain text information. If you wish to display complex HTML structures, images, or styles on the shutdown page, it is recommended that you modify or createerrors/close.htmlThe template file can be implemented. In this template, you can freely write HTML code, and through{% system with name="SiteCloseTips" %}the tag to bring the plain text prompt content from the backend into the page.
2. If I have not createderrors/close.htmlWhat will be displayed when the website is closed?If you have not created a customizederrors/close.htmlTemplate file, AQCMS usually has a default system shutdown page.This page will directly display the content you enter in the "Global Function Settings" "Shut Down Prompt" field in the background, but its style and layout may be predefined by the system, which is relatively simple.errors/close.htmlfile.
3. Will the closure of the website affect SEO?For short-term (such as a few hours to a day) maintenance closures, there is usually no significant impact on the website's SEO.The shutdown mechanism of AnQi CMS at the technical level will return a '503 Service Unavailable' status code to search engines, indicating that the service is temporarily unavailable and notifying search engines that this is not a permanent shutdown.The search engine will recrawl your website after a period of time.If the closure time is long, search engines may reduce the crawling frequency, but once the site recovers, it usually rebuilds the index quickly.The key is to provide clear instructions when the site is closed and ensure that the content and services are normal after the site is restored.