AutoCMS (AutoCMS) is an efficient platform focusing on enterprise content management, which provides many practical functions for website optimization. The setting of pseudo-static rules is a key link in improving the search engine friendliness (SEO) of the website.By reasonable URL rewriting configuration, 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 for website administrators, Anqi CMS is built with four commonly used pseudo-static rule preset modes. Users can directly select and enable them in the "Pseudo-static Rule" option of the background function management module according to the actual needs of the website and the language habits of the target audience.
FirstlyNumber 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./article/123.htmlThis pattern is concise and clear, and it is relatively common on websites in mainland China because the numerical ID has high efficiency in internal management and data indexing.
ThenModel naming patternThis pattern of URL structure will combine the alias of the content model, for example/product/latest-model.html.The model naming pattern is more widely used in multilingual or English-dominated websites, as it increases the semantic level of URLs by integrating the content model name (such as 'article' or 'product') into them, making URLs more descriptive and friendlier to search engines and users.
Next isCategory Naming Pattern 1andClassification naming pattern 2.These two modes are both based on the classification name to construct URLs, but may differ in specific implementation details or hierarchical structures./news/company-updates.html.The category naming pattern 2 is more commonly used on English websites, which also emphasizes the semantics and hierarchy of URLs to meet the needs of international SEO.These two modes 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, the Anqi CMS also provides powerful custom rewrite rule functionality, which allows website administrators to finely design URL structures according to very specific business requirements.This feature belongs to advanced configuration, so it requires extra caution during operation to avoid the page becoming inaccessible due to incorrect configuration.
Custom mode allows users to define up to six groups of rewrite 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 “规则名===规则值”format for configuration.}
When building a custom rule value, 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 data or category, usually pinyin or English alias.{catname}:represents the custom link name of category.{catid}:represents the unique ID for categories.{module}:represents the table name or alias of the content model.{page}:represents the page number of pagination. It should be noted that the pagination page number variable{page}must be enclosed in parentheses, for example(-{page})indicates that the pagination section 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),Category list page is the 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 pseudo-static rules greatly enhance the flexibility and controllability of the Security CMS in URL management.However, it is precisely due to 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 the test environment first, ensuring the correctness of the rules and the normal access of the website, thereby effectively utilizing this feature and further enhancing the website's SEO performance and user experience.
Common Questions and Answers (FAQ)
Question 1: What specific benefits does the pseudo-static URL have for the SEO of the website?答:The pseudo-static URL 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 the inclusion efficiency and keyword ranking.It can also enhance user experience because concise and clear URLs are easier for users to remember and share.In addition, static URLs typically look more professional and trustworthy than dynamic URLs.
问2:If I set custom rewrite rules but the website page does not open, how should I troubleshoot the problem?答:If the website page cannot be opened, first check if the syntax of the custom rules is correct, especially the use of variables and matching of parentheses.AutoCMS explicitly states that custom rules belong to the advanced mode, improper configuration may lead to issues.Suggest checking each rule individually to ensure it corresponds to the page type and data structure.If it is deployed in Baota panel or Nginx environment, it is also necessary to check the configuration file of the web server (such as Nginx) to ensure that it correctly redirects requests to the entry file of the safe CMS, and that the pseudo-static rules of Nginx can work together with the internal rules of the CMS.
问3:In the custom rewrite rules,{page}Why do we need to enclose the variable in parentheses, like(-{page})?Answer:{page}For example, why do we enclose the variable in parentheses(-{page})This part is optional. This means that when the URL does not contain pagination information, this part of the path (for example-2Will not appear in the final URL. This makes the format of pagination URLs more flexible, allowing to handle pages with pagination parameters such as/category/news-2.html),也能处理不带分页参数的页面(如 English/category/news.html),而无需为每种情况编写单独的规则,保持了URL的整洁性和通用性。