In website operation, a clear and search engine-friendly URL (Uniform Resource Locator) is crucial for the display and retrieval of content.AnQiCMS provides powerful pseudo-static rule management functions, allowing us to flexibly optimize the website's URL structure, thereby effectively improving the performance of search engines.

Why is the URL structure important?

First, let's understand why the URL structure is so critical for the SEO (Search Engine Optimization) of a website.

  1. Improve user experience:A concise and meaningful URL allows users to see the page content at a glance, improving click-through rate. For example,yourdomain.com/category/article-titlefaryourdomain.com/view.php?id=123&cid=456more friendly.
  2. Easier for search engines to crawl:Search engine crawlers prefer clear, static, or pseudo-static URLs.Too many parameters in a dynamic URL may lead to reduced crawling efficiency of the spider, and even produce duplicate content problems.The so-called static URL looks like a static file, but it is actually dynamically generated by the program, which maintains readability and avoids occupying a large amount of storage space by static files.
  3. Keyword relevance:URL contains keywords related to the content, which can help search engines understand the page theme, increase the relevance of the page to the search query, and may improve ranking.
  4. Improve sharing efficiency:A concise URL is easier to share and spread on social media and external websites, increasing brand exposure.

AnQi CMS understands the importance of URL structure, therefore, it emphasizes the 'pseudo-static and 301 redirect management' in its core functions, aiming to improve SEO effects by optimizing URL structure.

AnQi CMS Overview of URL Rewriting Function

The Anqi CMS is built with flexible pseudo-static rule configuration, allowing users to adjust the URL presentation of the website according to actual needs.Whether it is a simple ID number pattern or a naming pattern combined with model, classification, and content, Anqi CMS can easily handle it.

Under the "Function ManagementThis provides various preset rules and supports advanced custom modes to meet the needs of complex URL structures.

Choose the URL Rewriting Rule Suitable for You

AnQi CMS provides four commonly used built-in URL rewriting rules for quick selection and application:

  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:/article/123.html. This pattern is suitable for websites that do not have high semantic requirements for URLs but pursue simplicity and efficiency.
  2. Model naming pattern:For example, include the model name of the content in the URL:/news/latest-updates.html. This helps users and search engines understand the business module of the page content. This pattern is especially common on English websites.
  3. Category naming pattern 1:The category name of the content is included in the URL. For example:/products/electronics/item-name.htmlThis pattern can clearly show the level relationship of the content, often used on Chinese sites.
  4. Category naming pattern 2:This category name is included, but may differ in form or hierarchical structure from pattern 1 to adapt to the design preferences of different websites. This pattern is often used on English websites.

When choosing the built-in mode, you can decide based on the main language, content structure, and SEO strategy of the website.For example, an English e-commerce website might prefer model naming or category naming patterns 2 to maintain the English semantics of the URL.

Deep customization: Custom static rule customization

For users with higher requirements, the custom mode of Anqi CMS provides great flexibility.You can design a unique URL structure based on your brand positioning, SEO strategy, or even specific marketing activities.

The configuration of custom rules is composed in the form of "rule name===rule value", where the rule name corresponds to different page types of the website, for example:

  • archive: Corresponds to the document detail page (articles, products, etc.).
  • category: Corresponds to the category list page.
  • archiveIndex: Corresponds to the model homepage (such as the list of all articles).
  • page: Corresponds to a single page.
  • tagIndex: Corresponds to the tag homepage.
  • tag: Corresponds to the label detail page.

In the rule values, we can use various variables to construct URLs:

  • {id}:Unique digital ID for content, categories, tags, etc.
  • {filename}:Document or custom URL alias for a single page.This alias can be manually set when editing documents or single-page applications, the system will automatically generate pinyin based on the title, but you can modify it yourself.Please note that the custom URL alias must ensure uniqueness throughout the entire site, otherwise the system will automatically add random numbers to ensure uniqueness.
  • {catname}:The custom URL alias for the category. With{filename}Similar, it can be set when editing the category.
  • {catid}:The numeric ID of the category.
  • {module}:The URL alias of the model to which the content belongs, set in the content model management.
  • {page}:Page number used for pagination. Usually placed inside parentheses, such as(-{page}), indicating that it is an optional pagination parameter.

For example, a typical combination of custom rules might look like this:

archive===/{module}/{catname}/{filename}.html
category===/{module}/{catname}(-{page})
archiveIndex===/{module}/index(-{page}).html
page===/page/{filename}.html
tagIndex===/tags/index(-{page}).html
tag===/tags/{filename}(-{page}).html

The meaning of this rule is:

  • The URL of the document detail page will include model alias, category alias, and custom document alias, followed by:.html.
  • The URL of the category list page includes the model alias and category alias, and supports optional pagination parameters.
  • The home page of the model and the pages related to tags also have their own naming rules.

In this way, you can create URLs that are both semantically good and comply with specific SEO strategies.

Configuration and practical suggestions

  1. Enter the pseudo-static settings:Log in to the AnQi CMS backend, go to "Function Management" -> "Static Rules".
  2. Select or customize the rules:
    • If you choose the built-in mode, just select and save.
    • If you choose the custom mode, you can enter or modify the rules in the provided text box. Make sure that each rule is formatted correctly and covers all necessary page types.
  3. Set Custom URL Alias:
    • Documentation:In the "Content Management" -> "Add Document" or "Edit Document" page, find the "Custom URL" field. Enter a meaningful English or拼音 alias.
    • Category:In the "Content Management" -> "Document Categories" -> "Add/Edit Category" page, find the "Custom URL" field and set it.
    • Content Model:On the "Content Management" -> "Content Model" -> "Edit Model" page, set the model's "URL alias".
    • Tags:On the 'Function Management' -> 'Document Tags' -> 'Add/Edit Tag' page, set the 'Custom URL' for the tag.
  4. Test and verification:After the configuration is complete, be sure to thoroughly test all types of links on the front page, including the home page, category list page, document detail page, single page, search results page, and pagination links, ensuring they can be accessed normally and the URL structure meets expectations.
  5. Use 301 redirect:If you change the URL structure of the website or some page URLs change due to content adjustments, it is strongly recommended to use the '301 Redirect Management' feature provided by Anqi CMS.Permanently redirect the old URL to the new URL to avoid 404 errors when users access the old link, while smoothly transferring the accumulated search engine weight of the old link to the new link, minimizing SEO losses as much as possible.

Summary

With Anqi CMS's flexible pseudo-static rule management, you can easily build a clear, semantic set for website content that is friendly to search engines