As website operators, we all hope that the website URL can be easily crawled by search engines, and be clear to users, even to understand the content of the page directly from the link.A clear and meaningful URL not only enhances user experience but is also an indispensable part of search engine optimization (SEO).Aq CMS knows this and therefore provides a powerful and flexible static rule configuration function, allowing us to create diverse content link display modes according to our needs.

Why is pseudo-static so important?

Imagine two links:www.yourdomain.com/view.php?id=123&cat=456andwww.yourdomain.com/articles/seo-guide-2023.html. It is evident that the latter is not only more readable but also easier for users to remember and share.For search engines, static or pseudo-static URLs are also easier to understand the page theme and help with keyword rankings.The static page technology can change the dynamic generated web page address through the server rules, making it look like a static page URL, without actually generating static files, balancing the convenience of managing dynamic content and the SEO advantages of static URLs.

The static ability of Anqi CMS: Basics and Advanced

The pseudo-static function design of Anqi CMS is very user-friendly, whether you are a beginner or an experienced user with advanced customization needs, you can find the configuration method that suits you.

Get Started Quickly: Built-in Rules

For those who are just getting started with pseudo-static or want to go live quickly, the four built-in pseudo-static rules of Anqi CMS provide great convenience. You don't have to manually write complex rules, just select them in the background to apply:

  1. Numeric pattern: URLs of this pattern typically contain the ID of the content, for example/article/123.html. It is simple and straightforward, suitable for websites where the ID is the main identifier.
  2. Model naming pattern: The URL will include the alias and custom link name of the model and content, for example/news/latest-tech-trends.html. This helps users and search engines understand the model (such as "news") and specific content.
  3. Classification naming pattern 1: The URL will include the category ID and the ID or page number of the content, for example/category/5/page-2.html. This pattern is very useful when it is necessary to emphasize the category hierarchy.
  4. Classification naming pattern 2: A URL will use a categorized custom link name and a custom link name for the content, for example/solutions/marketing-strategy-guide.html. This will make the URL more semantic, fully reflecting the category and theme of the content.

These built-in patterns cover most common needs, just in the backgroundfunction management-u003eStatic rulesSelect and save it, and you can see the effect immediately

Deeply customize your URL: Custom rules

If you have more refined and personalized needs for URL structure, AnQi CMS provides powerful custom static rule settings.This allows you to customize unique URL patterns for different content types on the website (documents, categories, single pages, tags, etc.)

The configuration format of the custom rule is very clear, each rule is composed byRule name===Rule valueThe following six types of content types are supported by Anqi CMS to define rules:

  • archive: Document detail page
  • category: Category list page
  • archive index: Model homepage (for example, the list page of all articles)
  • page: Single page detail page
  • tag index: List page of all tags
  • tag: Document list page under a specific tag

When defining rule values, you can flexibly use a variety of variables to construct URLs:

  • {id}: Unique ID of the content.
  • {filename}Custom link alias for content (document, single page, tag).This alias needs to be manually set during editing, usually the pinyin or English abbreviation of the content, and must be unique throughout the entire site.
  • {catname}Category custom link alias. It also needs to be set when editing the category and must be unique.
  • {catid}Category ID.
  • {module}URL alias of content model (such as article, product).
  • (-{page}): Used for pagination. This variable needs to be enclosed in parentheses()Enclosed to indicate that it is displayed only when pagination exists.

Let's understand how these variables combine to form a diverse set of URLs with a few examples:

  1. Document details page (archive)

    • If you want the article URL to display as:/articles/文档ID.html:archive===/articles/{id}.html
    • If you want the URL to be more descriptive, for example:/article/seo-optimization-tips.html:archive===/{module}/{filename}.html
    • Even can be combined with category aliases:/news/industry-insights/market-analysis.html:archive===/{catname}/{filename}.html(Please note that if the category hierarchy is deep, this pattern needs to ensure that each level's{catname}have been set correctly and do not conflict.)
  2. Category list page (category)

    • Display by category ID:/products/category-15.html:category===/{module}/category-{catid}.html
    • Display by category alias and support pagination:/solutions/digital-marketing/page-2.html:category===/{catname}(-{page}).htmlHere(-{page})Means, if it is the first page, the URL does not contain/page-1If it is the second page, then display/page-2.
  3. Single page (page)

    • For single-page pages like 'About Us':/about-us.html:page===/about-us.htmlOr use a custom link alias:page===/{filename}.html
  4. Tab (tag)

    • Display by tag ID:/tag/tag-10.html:tag===/tag-{id}.html
    • Display by tag custom link name:/tag/seo-keywords.html:tag===/tag/{filename}.html

These custom rules are also in the backgroundfunction management-u003eStatic rulesSet in, after selecting “Custom mode”, you can fill in your exclusive rules in the text box. In filling{filename}and{catname}Be sure to inDocument editing/Category editingOr **Tags