In website operation, URL (Uniform Resource Locator) is not only the path for users to access the page, but also an important clue for search engines to understand the content and structure of the website.A well-optimized URL structure plays a crucial role in enhancing content display effects and SEO rankings.AnqiCMS (AnQi CMS) takes full consideration of SEO-friendliness in its design, providing flexible and powerful static rule management functions, allowing us to easily create beautiful and SEO-friendly URLs according to the needs of the website.

1. Why does a website need static URLs?

Before delving into the pseudo-static settings of AnqiCMS, we must first understand why pseudo-static URLs are so important.

  1. Improve user experience:The URL of static or pseudo-staticization is usually more concise, readable, and memorable. For example,yourdomain.com/news/anqicms-new-features.htmlThanyourdomain.com/index.php?mod=news&id=123&catid=456Easier to understand and share. Users can get a general idea of the page content through the URL, which helps improve the usability and user trust of the website.
  2. Enhance SEO friendliness:
    • Search engine crawling:Search engines prefer clear hierarchy and fewer parameters in static or pseudo-static URLs.Complex dynamic parameters may cause it difficult for spiders to crawl, and may even be misjudged as duplicate content, thereby reducing crawling efficiency.
    • Keyword integration:Including the core keywords of the page in the URL can pass clearer page topic information to search engines, improve page relevance, and possibly achieve better search rankings.
    • Avoid duplicate content:When updating or restructuring website content, if the URL changes, the 301 redirect function supported by AnqiCMS can help us permanently redirect the old URL to the new URL, avoid weight loss, and maintain SEO accumulation.
    • Page weight accumulation:A stable URL structure is beneficial for the continuous accumulation of page weight. Every external link pointing to it will increase the weight of the URL.

AnqiCMS is an enterprise-level content management system that takes static configuration as one of its core features, aiming to help users better achieve content marketing and SEO goals by optimizing URLs.

Second, the configuration basis of AnqiCMS pseudo-static rules

AnqiCMS provides an intuitive backend interface for managing static rules.By logging into the backend, navigate to the 'Function Management' under the 'URL Rewrite Rule' option, you will see the built-in variety of URL rewrite rules and custom settings.

AnqiCMS is built with four commonly used pseudo-static rules to meet the needs of different websites:

  1. Numeric mode:This is the simplest and most intuitive pattern, usually using the content ID as the unique identifier for the URL. For example:/news/123.htmlThis pattern is more common on Chinese websites, deployment is simple, but the URL semantics are poor.
  2. Model naming pattern:The English alias of the content model can be integrated into the URL, for example, the article model may usearticle, the product model may be usedproduct. The URL may be like this when combined with the content ID:/article/123.html. This pattern is very useful for distinguishing different types of content, especially suitable for English websites.
  3. Category naming pattern 1 and Category naming pattern 2:These patterns emphasize the representation of classification hierarchy in URLs.They will include the English alias (or pinyin) of the content category in the URL to build a URL with more hierarchy and semantics. For example:/category-name/article-title.htmlThis helps to better display the content hierarchy for websites with complex content structures, which is beneficial for search engines to understand.

For users with higher customization needs, AnqiCMS also providesCustom patternsThis is an advanced mode that allows us to finely define the URL structures of pages such as document details, document lists, model homepages, single pages, tag lists, and tag details according to our own business logic and SEO strategy.Be cautious when configuring the custom mode, as incorrect rules can cause the page to become inaccessible.

How to optimize the setting of custom static rules

The custom static rules are the key to improving the website's SEO effect. AnqiCMS' custom mode allows us to use various variables to build flexible URLs.

When configuring custom rules, each rule is composed by规则名===规则值in the form. Understanding and effectively using the following key variables is the basis for optimizing URL structure:

  • {id}:Data ID. It is the most stable identifier, but the semantic level is the lowest.
  • {filename}:Custom data link name. This variableExtremely importantIt represents the 'custom URL' value that you manually set for the content when editing documents, single pages, or tags.Integrating keywords into this custom link name is a key step in optimizing URLs.
  • {catname}:Custom category link name. Similar to{filename}It represents the 'custom URL' value you set when editing categories. This helps to reflect the semantics of the category in the URL.
  • {module}:Model table name. Used to distinguish different content models (such as articles, products) by URL.
  • {page}:Page number for pagination on list pages. The format is usually placed within parentheses, such as(-{page})The pagination parameter is optional.

Practical optimization suggestions:

  1. Document detail page(archive):
    • Recommended format: /{module}/{filename}.htmlor/{catname}/{filename}.html
    • Optimization ideas:Include the model of the content in the URL, such asarticleorproduct) and have semantic content custom link name. When editing documents, be sure to fill in the 'custom URL' field with an English phrase or pinyin containing the core keywords.For example, an article about 'AnqiCMS optimization techniques' can set the custom URL toanqicms-seo-tipsSo the URL may become/article/anqicms-seo-tips.html.
  2. Category list page (category):
    • Recommended format: /{module}/{catname}(-{page})* **