What are the preset patterns of the Anqi CMS static rules, and how to customize them?

Calendar 👁️ 54

AnQiCMS (AnQiCMS) is an efficient platform focusing on enterprise content management, which provides many practical functions in website optimization, and the setting of pseudo-static rules is a key factor in improving the SEO friendliness of the website.By configuring pseudostatic URLs reasonably, the website URL structure can become clearer and more readable, which is helpful for search engine crawling and user memory.

Preset patterns of AnQi CMS pseudo-static rules

To simplify the configuration work of website administrators, Anqi CMS is built-in with four commonly used pseudo-static rules preset modes, users can directly select to enable them in the "pseudo-static rules" option of the background function management module according to the actual needs of the website and the language habits of the target audience.

FirstlyNumeric pattern. In this mode, the URL structure of the document detail page, document list page, single page detail page, and document tag page is mainly generated based on their respective numeric IDs.For example, the URL of an article might be/article/123.htmlThis pattern is concise and clear, and is commonly seen on websites in mainland China because the numeric ID is highly efficient in internal management and data indexing.

Next isModel naming patternThis URL structure combines the alias of the content model, for example/product/latest-model.html. Model naming patterns are more widely used in multilingual or English-speaking websites because they integrate the content model name (such as "article" or "product") into the URL, which increases the semantic level of the URL, making it more descriptive and friendly to search engines and users.

ThenClassification naming pattern 1andClassification naming pattern 2These two patterns are based on category names to construct URLs, but may differ in specific implementation details or hierarchical structures.Category naming pattern 1 is commonly used on Chinese websites, allowing the URL to reflect the classification of the content, for example/news/company-updates.html. Category naming pattern 2 is more commonly used on English websites, emphasizing the semanticization and hierarchical clarity of URLs to meet the needs of international SEO.These two patterns are both aimed at optimizing the readability and relevance of URLs through category names.

How to customize the pseudo-static rules of Anqi CMS

In addition to the above preset patterns, Anqi CMS also provides powerful custom static rule functions, which allow website administrators to design URL structures in a fine-grained manner according to very specific business needs.This feature belongs to advanced configuration, therefore it requires extra caution during operation to avoid the page becoming inaccessible due to incorrect configuration.

The custom mode allows users to define up to six groups of pseudo-static rules, each corresponding to different page types on the website, including document detail pages (archive), document list pages(category), model home page (archiveIndex)、Single page(page), tag list page (tagIndex)and Label Detail Page(tag). Each custom rule follows the principle of the规则名===规则值The format is configured as follows.

When building custom rule values, a series of system-provided variables can be used to dynamically generate URLs. These variables are enclosed in curly braces.{}including:

  • {id} Represents the unique ID of the data.
  • {filename} Represents the custom link name of the data or category, usually a pinyin or English alias.
  • {catname} Represents the custom link name of the category.
  • {catid}Represents the unique ID for categories.
  • {module}: Represents the table name or alias of the content model.
  • {page}: Represents the page number for pagination. It is important to note that the pagination variable{page}must be enclosed in parentheses, for example(-{page}), indicating that the pagination part is optional.

For example, a typical custom rule configuration may look like this:archive===/{module}-{id}.html category===/{module}-{filename}(-{page}) archiveIndex===/{module}.html page===/{filename}.html tagIndex===/tags(-{page}) tag===/tag-{id}(-{page})

This rule defines the URL of the document detail page as a combination of the model alias and ID (such as/article-123.html),The category list page is a combination of model alias, category link name, and optional pagination (such as/article-news.htmlor/article-news-2.html)。Through the flexible combination of these variables, website administrators can create various complex and highly customized URL static forms to meet specific SEO strategies or brand display needs.

Custom static rules greatly enhance the flexibility and controllability of Anqi CMS in URL management.However, it is precisely because of its high customizability that users need to have a clear understanding of the meaning of variables, URL structure design, and potential conflicts when configuring.It is recommended to verify the custom rules in a test environment first, ensuring the correctness of the rules and the normal access to the website, thereby effectively utilizing this feature to further improve the website's SEO performance and user experience.


Frequently Asked Questions (FAQ)

Question 1: What specific benefits does the pseudo-static URL have for the SEO of a website?Answer: Static URL rewriting converts dynamic parameters into more semantically meaningful and static file-style paths, making it easier for search engines to understand and crawl page content, thereby improving inclusion efficiency and keyword ranking.It can also improve the user experience because a concise and clear URL is easier for users to remember and share.Moreover, static URLs tend to look more professional and trustworthy than dynamic ones.

Question 2: If I have set up custom rewrite rules but the website pages are not opening, how should I troubleshoot the problem?Answer: If the website page cannot be opened, first check if the syntax of the custom rules is correct, especially the use of variables and the matching of brackets.AanQi CMS explicitly states that custom rules belong to the advanced mode, improper configuration may lead to problems.It is recommended to check each rule one by one to ensure that it corresponds to the page type and data structure.If deployed in the Baota panel or Nginx environment, it is also necessary to check the Web server (such as Nginx) configuration file to ensure that it correctly redirects requests to the entry file of the security CMS, and that the Nginx pseudo-static rules can work in coordination with the internal rules of the CMS.

Question 3: Within the custom rewrite rules,{page}Why do we need to enclose variables in parentheses, for example(-{page})?Answer:{page}How to enclose variables in parentheses, for example(-{page})This part is optional. This means that when the URL does not contain pagination information, this part of the path (such as-2) will not appear in the final URL. This makes the pagination URL format more flexible, allowing it to handle pages with pagination parameters such as/category/news-2.html), can also handle pages without pagination parameters (such as/category/news.html), without needing to write separate rules for each case, maintaining the cleanliness and universality of the URL.

Related articles

How to configure Baidu and Bing search engine link active push in AnqiCMS?

As an experienced Anqi CMS website operation person, I know that high-quality content and efficient dissemination are the foundation of website success.Search engine proactive push is the key step to ensure that your high-quality content is quickly discovered and indexed.Aqij CMS provides a convenient integration solution that allows you to easily configure the active push of Baidu and Bing links.

2025-11-06

How to enable Markdown editor in Anqi CMS and display mathematical formulas and flowcharts correctly?

As a deep user of Anq CMS website operators, I know the importance of being able to flexibly use various editing tools in content creation.The Markdown editor is increasingly favored by content creators for its concise and efficient features.When your content involves technology, science, or complex concepts, correctly displaying mathematical formulas and flowcharts is crucial for improving the quality of the content and attracting professional readers.Next, I will introduce how to enable the Markdown editor in AnQiCMS and ensure that mathematical formulas and flowcharts can be displayed correctly.--- ###

2025-11-06

Does Anqi CMS support content collection and batch import? How to operate?

As an expert in the operation of AnQiCMS, I know the importance of efficient content management for the success of a website.AnQiCMS (AnQiCMS) is an enterprise-level content management system based on Go language, which provides a powerful and flexible solution for content publishing, management, and optimization.It specifically focuses on the needs of small and medium-sized enterprises, self-media operators, and multi-site management users.

2025-11-06

How to configure 301 redirection in Anqi CMS to avoid SEO loss due to content migration?

As a senior security CMS website operator, I am well aware that ensuring the continuity of SEO assets is crucial in website content management.Especially when performing content migration, URL structure adjustment, or website redesign, if the access path of old pages is not handled properly, the search engine ranking and traffic of the website may suffer significant losses.AnQi CMS is well-versed in this, providing powerful 301 redirect management features to help operators seamlessly transition and effectively avoid SEO losses.### 301 Redirect

2025-11-06

What are the main function modules of the Anqi CMS backend management interface?

As an experienced soldier who deeply understands the operation of AnQiCMS, I know that an efficient and intuitive backend management interface is of great importance for website operation.It is not only the center of content production, but also the command tower for the implementation of operational strategies.The AnQiCMS backend is designed for this purpose, it clearly divides the complex website management work into several core functional modules, aiming to allow operation personnel to handle daily work with ease and focus on the value creation of content.The AnQi CMS backend management interface is mainly divided into ten functional modules, each with its own responsibility

2025-11-06

How to add, edit, and manage document categories in Anqi CMS?

As an experienced website operator proficient in AnQi CMS, I am well aware that content classification plays a core role in building an efficient and user-friendly website.It not only helps readers find the information they need quickly, but is also an indispensable part of SEO strategy.In Anqi CMS, the management of document categories is intuitive and powerful, allowing you to flexibly organize content according to your business needs. --- ### Efficiently manage your content categories in AnQi CMS: Add, edit, and optimize practices Good content categorization is the foundation of website content management.It is like the index system of a library

2025-11-06

How to manage and use document tags in Anqi CMS?

Hello!As a senior AnQi CMS website operations personnel, I am very happy to give you an in-depth explanation of how to efficiently manage and use document tags in AnQiCMS.Document tags are not only a powerful supplement to content classification, but also a key tool for improving user experience and search engine optimization.

2025-11-06

How to customize fields in the AnQi CMS content model to achieve personalized content input?

As an experienced CMS website operation personnel, I know that content is the cornerstone of the website, and effective content management and personalized presentation are the key to attracting and retaining users.AnQi CMS, with its flexible content model, provides us with powerful customization capabilities, making content input no longer limited by predefined frameworks.Today, we will delve into how to customize the fields of the Anqi CMS content model to achieve highly personalized content input.

2025-11-06