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.