As an experienced CMS website operation personnel of an enterprise, I know that a clear and semantically meaningful URL structure is crucial for the website to achieve a good ranking in search engines.The pseudo-static rules are one of the key tools to achieve this goal.AnQiCMS (AnQiCMS) was designed with SEO friendliness in mind from the beginning, built-in powerful pseudo-static functions, allowing website operators to flexibly configure URLs, thereby optimizing search engine crawling and user experience.

This article will discuss in detail how to configure URL static rules in Anqi CMS to improve your website's performance in search engines.

The importance of static rules for search engine rankings

In website operation, the URL (Uniform Resource Locator) is not just the address of the page, but also an important signal for search engines to understand the content of the page and user experience.Dynamic URLs often contain question marks, equal signs, and a long string of parameters, which is not easy to remember and may even reduce the efficiency of search engine crawling and be misjudged as duplicate content.On the contrary, pseudo-static URLs use technical means to convert dynamic parameters into a static path format, making them look like a real static file.This optimization brings various benefits:

Firstly, static URLs have betterreadability. Users can intuitively understand the general content of the page through the URL, enhancing trust. Secondly, pseudo-static URLs are more conducive to search engines.FriendlyA concise, keyword-rich URL helps search engines better understand the page topic, thereby improving relevance ranking. Moreover, static URLs are helpfulweight transferCompared to dynamic parameters, search engines tend to concentrate the weight on structured static URLs, which is beneficial for accumulating page weight and improving PR value.Safe CMS is based on these considerations and provides comprehensive static configuration capabilities.

Secure CMS Static Function Overview

Aqie CMS integrates the management of pseudo-static rules into the background function management module, its design aims to provide flexibility for users with different needs.The system is built-in with four preset static rules for quick activation by users.At the same time, it also provides a highly customizable "custom mode" that allows operation personnel to finely design the URL structure of each type of page (such as document details, category lists, single pages, tab pages, etc.) according to specific SEO strategies and business needs.

No matter which preset rules or custom rules you choose, AnQi CMS is committed to ensuring that the URL structure can maximize the search engine friendliness of the website, thereby optimizing the search engine ranking.

Understand the preset pseudo-static rules of AnQi CMS

The four preset static rules built into AnQi CMS provide a quick starting point for website optimization. These rules take into account different types of websites and SEO focuses, and you can choose according to your own situation:

Numeric pattern

This pattern usually uses the unique ID of the content as the main identifier for the URL. For example, the URL of a document may look like this./article/123.htmlThe advantages of this pattern are that the URL structure is concise and clear. For Chinese websites, especially when you do not want to appear pinyin or English words in the URL, a number ID is a direct and effective choice.Search engines can also handle numeric IDs well, but the degree of semanticization is relatively low.

Model naming pattern

This pattern adds the name or URL alias of the content model to the URL, enhancing the semanticization of the URL. For example, the URL of a document for a "product" model may look like this./product/detail-456.htmlOr/product-456.htmlThis is very beneficial for websites that have multilingual content or English content display needs, as it helps search engines distinguish between different types of content and index them more accurately with the model name.In AnQi CMS, the model will have a "URL alias" field, whose value will be used in the pseudo-static rules to{module}Variable manifestation.

Category Naming Pattern 1 (Chinese Site)

This pattern integrates the category name information in the URL, usually more focused on complying with Chinese users' reading habits. For example, a document may be displayed as/分类名称/文档ID.htmlThis way adds a hierarchical sense to the URL, which helps users understand the content ownership.

Category naming pattern 2 (English site)

Similar to the naming pattern of Chinese stations, but more inclined to use the English alias of the category to adapt to English SEO practices. For example,/category-name/document-title.html. For websites targeting the international market, this pattern can better meet the preferences of English search engines and enhance the internationalization of URLs.

When choosing preset rules, please consider the type of your website content, target audience, and long-term SEO strategy.For most frequently updated Chinese information websites, a numeric pattern or category naming pattern 1 may be a good choice;And for corporate websites, product showcases, or multilingual websites, model naming patterns or category naming patterns 2 may be more advantageous.

Advanced Optimization: Custom Static Rule

When the preset rules provided by Anq CMS cannot fully meet your refined SEO needs, customizing the static rules will be your choice.The custom mode provides you with the greatest flexibility, allowing you to customize the URL structure for each of the six core page types of the website - document details, document list, model homepage, single page, tag list, and tag details.

Composition of custom rules

Each custom rule consists of 'Rule Name' and 'Rule Value', formatted as规则名===规则值For example,archive===/{module}-{id}.html.

  • Rule Name: Specifies the page type that needs to be applied to the rule. AnQi CMS supports the following six core rule names:
    • archive: Document detail page.
    • category: Document list page (category page).
    • archiveIndex: Content model home page.
    • page: Single page detail page.
    • tagIndex: Tag list page.
    • tag: Tag detail page.
  • Rule valueThis defines the specific URL path for the page type. This part can be flexibly combined with various variables to build a URL that meets your expectations.

Core variable analysis

When building custom rule values, you can use the variables provided by Anqi CMS to dynamically generate URLs, ensuring the semantics and uniqueness of the URL:

  • {id}: Represents the unique identifier ID of the content, such as document ID, single page ID, tag ID, etc.
  • {filename}: Custom link name of the content. This value can be manually set in the editing interfaces such as 'Add Document', 'Document Classification', 'Document Tags', 'Page Management' in the background.If not manually set, the system will automatically generate a pinyin as the default value based on the title.
  • {catname}: Custom link name of the category. With{filename}Similar, can be set or automatically generated on the category editing page.
  • {catid}Unique ID of the category.
  • {module}: The URL alias of the content model, usually configured in the 'Content Model' management. For example, the article model may be set toarticle, the product model can be set asproduct.
  • {page}: Page number. This variable needs special handling and must be placed within parentheses, for example(-{page})or(/page-{page}).

Actual configuration example and application scenario

Here are some common examples of custom static rules and their application scenarios, you can adjust these examples according to your needs:

  1. Document details page (archive):
    • Example:archive===/{module}/{catname}/{filename}.html
    • ExplanationThis rule generates a URL that includes model alias, category custom link name, and document custom link name. For example,/article/news/anqicms-tutorial.htmlThis provides excellent semantics, which helps search engines understand the document hierarchy.
    • Back-end configurationIn the "Add Document" or "Edit Document" interface, make sure to use a "Custom URL"