As an experienced CMS website operation personnel for an information security company, I know that the static rules are crucial for the SEO effect and user experience of the website.When you change the pseudo-static rules in the AnQiCMS background, a series of operations are indispensable to ensure that the new rules take effect immediately and avoid potential access issues.


How to make the new rules take effect immediately after changing the pseudo-static rules of AnQi CMS?

The Auto CMS provides flexible URL rewrite rule configuration, aiming to help websites optimize their URL structure for better search engine crawling and user memorization.Whether you choose the built-in rules or the custom mode, after changing the rules, you need to perform specific steps to activate these adjustments.

Firstly, when you enter the "URL Rewrite Rules" page in the "Function Management" module of the AnQi CMS backend and make changes to the rules or select a new preset rule, you need to explicitly save these changes.The system will record your new settings, but merely saving them is often not enough to make the entire website generate and parse URLs according to the new rules immediately.

Complete the save operation and the most critical step is to clear the system cache.The autoCMS is designed to improve website performance by caching a large amount of configuration and page data.The old pseudo-static rules may still exist in the cache, causing the new rules to be read and applied incorrectly.You can find the "Update Cache" feature in the left navigation bar of the background management interface.Click this option to perform the site-wide cache cleaning operation.This operation usually refreshes most system configurations, including pseudo-static rules.

For an enterprise CMS developed based on Go language, changes to some core configurations may require reloading the application to take full effect.Although clearing the cache can solve most problems, but in order to ensure that the new pseudo-static rules are fully adopted by the application, executing a smooth restart of the AnQiCMS application is**practical.start.shandstop.sh)。You can use these scripts to first execute the stop (stop.sh)Operation, wait for the application to be completely closed before executing the startup (start.sh)Operation. This ensures that the AnQiCMS application is restarted with the latest configuration, thereby thoroughly loading and applying the new pseudo-static rules.

Complete the above internal operations and then verify on the website frontend.Try accessing several pages that should generate new URLs according to the new rules, and check if their URLs meet your expectations.For example, if you change the rule of the article detail page from an ID-based mode to a filename-based mode, you should see the article link reflect this change.If the old URL still exists or the new URL cannot be accessed, it may be a problem caused by browser caching.Please clear the cache data of your browser and refresh the page to try again.

In summary, after changing the AnQiCMS pseudo-static rules, the core steps include saving the new rules, clearing the system cache, and restarting the AnQiCMS application.Complete these steps and perform frontend validation and clear the browser cache to ensure the new rules take full effect.


Common Questions (FAQ)

Q1: I changed the rewrite rule and cleared the system cache, but why doesn't the new rule take effect and the page is still in the old URL mode?A1: Even after clearing the system cache, the AnQiCMS application developed in Go language sometimes needs to be restarted to fully load and apply all configuration changes, especially core routing settings like pseudo-static rules. Please try to stop and restart the AnQiCMS application (usually by executing the deployment directory under) in Englishstop.shandstart.sh脚本,或通过宝塔/1Panel等面板管理Go项目进行重启(English)。In addition, please make sure you have cleared your browser's cache, as the browser may cache old URL redirection information.

Q2: After changing the pseudo-static rules of AnQiCMS backend, do I need to restart Nginx or Apache web servers?A2: Usually, if your Nginx or Apache configuration is set up as a simple reverse proxy, all requests will be forwarded to the AnQiCMS application (for exampleproxy_pass http://127.0.0.1:8001;Then you do not need to restart the web server.This is because AnQiCMS is responsible for parsing URLs and handling pseudo-static rules.However, if you have configured complex custom rewrite rules on your web server that are closely associated with the AnQiCMS internal pseudo-static rules, and these rules conflict with or require synchronization with your new AnQiCMS rules, then you need to adjust the configuration of your web server accordingly and restart it.

Q3: Will changing the pseudo-static rules of my website have a negative impact on my website's SEO?A3: Changing the rewrite rule may have a short-term impact on SEO.If the structure of the new and old URLs changes, search engines need to recrawl and index your pages.To minimize the negative impact as much as possible, it is strongly recommended that you use the built-in 301 redirect function of AnQiCMS.After the new rules take effect, 301 redirect all important old URLs to the corresponding new URLs.This will inform the search engine that the page has moved permanently, thus passing the original page authority and avoiding 404 errors when users access the old link.