As a senior AnQi CMS website operator, I know that the static rules are crucial for the SEO effect and user experience of the website.After you change the static rule in the AnQiCMS background, a series of operations are essential to ensure that the new rule takes effect immediately and avoid potential access issues.
How to make the new rules of Anqi CMS take effect immediately after changing the pseudo-static rules?
AnQi CMS provides flexible pseudo-static rule configuration, aimed at helping websites optimize their URL structure for better search engine crawling and user memory.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.
First, when you enter the "Function Management" module in the Anqi CMS backend and go to the "Static Rule" page, and after modifying the rules or selecting 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 allow the entire website to immediately generate and parse URLs according to the new rules.
After saving the operation, the most critical step is to clear the system cache.A security CMS to improve website performance will cache 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 backend management interface.Click this option to perform the site-wide cache cleanup operation. This action usually refreshes most system configurations, including the pseudo-static rules.
For an enterprise CMS developed in Go language, certain changes to core configurations may require a reload of the application layer to take full effect.Although clearing the cache can solve most problems, it is**practical**to perform a smooth restart of the AnQiCMS application to ensure that the new static rule is fully adopted by the application.When you deploy AnQi CMS, you will usually configure scheduled tasks or startup scripts (such asstart.shandstop.sh)。You can use these scripts to first execute the stop(stop.shPerform the operation, wait for the application to close completely before starting itstart.sh) Operation. This ensures that the AnQiCMS application is restarted with the latest configuration, thereby thoroughly loading and applying the new pseudo-static rules.
After completing the above internal operations, it is recommended that you perform verification 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 rules 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 an old URL still exists or a new URL cannot be accessed, it may be a problem caused by browser caching.At this time, please clear your browser's cache data and refresh the page to try again.
The configuration of external web servers (such as Nginx or Apache), for most AnQiCMS deployments that use simple reverse proxy, usually does not require additional restarts or modifications.AnQiCMS listens on a specific port (default 8001), receiving all requests forwarded by the web server and processing internal URL routing and pseudo-static parsing by itself.Therefore, the changes to the pseudo-static rules are usually limited to the internal logic of AnQiCMS.However, if your web server is configured with very specific, custom rewrite rules closely related to the internal pseudo-static rules of AnQiCMS, then after the internal rules of AnQiCMS change, you may need to check and adjust the configuration file of the web server accordingly, and restart the web server to make these external rules take effect.But this situation is relatively rare in the standard AnQiCMS deployment.
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.After completing these steps, perform front-end validation and clear the browser cache to ensure the new rules take full effect.
Frequently Asked Questions (FAQ)
Q1: I changed the pseudo-static rules 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. Try to stop and restart the AnQiCMS application (usually by executing the deployment directory understop.shandstart.shScript, or restart the Go project through Baota/1Panel and other panels).Moreover, make sure you clear your browser's cache as the browser may cache old URL redirection information.
Q2: After changing the pseudo-static rules of the AnQiCMS background, do I need to restart Nginx or Apache and other web servers?A2: In most cases, if your Nginx or Apache is configured as a simple reverse proxy, it will forward all requests 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 by itself.However, if you have configured complex custom rewrite rules on your web server that are closely associated with AnQiCMS internal pseudo-static rules, and these rules conflict with or require synchronization changes with your new AnQiCMS rules, then you will need to adjust the configuration of your web server accordingly and restart it.
Q3: Will changing the website's static rules have a negative impact on my website's SEO?A3: Changing the static rule may have a short-term impact on SEO.If the structure of the old and new URLs changes, the search engine needs 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, configure 301 redirects for all important old URLs to the corresponding new URLs.This will inform the search engine that the page has been permanently moved, thereby passing the original page authority and avoiding the 404 error when users access the old link.