In today's digital world, a clear, friendly, and easily searchable URL structure is crucial for a website's visibility.As one of the core functions of the content management system, the custom ability of URL pseudo-static rules can enable your website to perform better in search engines.AnQiCMS as an SEO-optimized content management system, provides very flexible pseudo-static configuration options, allowing you to easily achieve this goal.

Understanding the importance of URL rewrite for SEO

Firstly, let's briefly understand what a pseudo-static URL is and why it is so crucial for search engine optimization.

Dynamic URLs usually contain question marks, equals signs, and various parameters, such asyourdomain.com/article.php?id=123&category=news.This type of URL can correctly point to content, but it may not look "friendly" to search engine spiders, and sometimes may even be mistakenly considered as duplicate content or difficult to parse.

And pseudo-static URLs, by using rewrite technology, 'disguise' dynamic links in the form of static links, for exampleyourdomain.com/article/123.htmloryourdomain.com/news/my-first-article.html.This form of URL is not only more readable for users, but also easier for search engines to understand and trust, which helps to improve the page inclusion rate and keyword ranking.AnQiCMS is adhering to the design philosophy of SEO-friendliness, with built-in powerful pseudo-static management functions to help you build high-quality URL structures.

Configure pseudo-static rules in AnQiCMS

To start customizing the pseudo-static rules, you need to log in to the AnQiCMS backend management interface.In the left function menu, find the 'Function Management' section, and then click the 'Static Rule' option.This is the core area where you define and manage the URL structure of the website.

AnQiCMS has preset four commonly used static rules for the convenience of users, ready to use out of the box. If you are new to URL rewriting or prefer simplicity and efficiency, you can directly choose one of them:

  1. Number Pattern:This pattern usually uses the content ID as the core identifier of the URL, for example/article-123.html。It is concise and clear, suitable for Chinese sites that focus on ID recognition.
  2. Model naming pattern:URL will include the alias of the content model it belongs to, for example/product/my-awesome-product.html。This is especially beneficial for websites with multiple content models (such as articles, products), especially English sites, as it better reflects the content type.
  3. 分类命名模式1 & 分类命名模式2:这两种模式会根据内容的分类结构来构建URL,例如/news/technology/article-title.html。They are common on both Chinese and English sites and help users and search engines understand the hierarchical structure of content.

Selecting these built-in rules is very simple, just click the corresponding option to enable, which greatly reduces the trouble of manual configuration.

Deeply customize your URL rewrite rules.

The strength of AnQiCMS lies in its 'Custom Mode', which allows you to finely define the URL format of each type of page according to your own SEO strategy and website structure. The Custom Mode supports setting up pseudo-static rules for six different page types, which are:

  • Document details page (archive):指具体的文章、产品等内容详情页。
  • Document list page (category):指文章列表、产品列表等分类页面。
  • Model homepage (archiveIndex):指某个内容模型(如文章模型、产品模型)的首页。
  • Single Page (page):指“About Us”、“Contact Us”等独立页面。
  • 标签列表页 (tagIndex):指所有标签的列表页面。
  • Tag detail page (tag):指某个具体标签下的内容列表页。

In custom rules, each rule is composed by规则名===规则值. For example,archive===/{module}-{id}.html.

To build these rules, AnQiCMS provides a series of flexible variables for you to call:

  • {id}:Content (document, category, tag, etc.) unique ID.
  • {filename}:Content's custom link alias.This is the key to high SEO optimization, which is usually automatically generated by the system based on the content title in pinyin, but you can manually edit it to ensure it contains core keywords and is unique.
  • {catname}:Custom link alias for the category, generated automatically by the system and supports manual editing.
  • {catid}The unique ID of the category.
  • {module}:Content name of the model it belongs to, usually as part of the URL path, for examplearticleorproduct.
  • {page}:Page number used for pagination. It needs to be enclosed in parentheses in the rule, for example(-{page})This indicates that it is an optional pagination parameter.

Example: How to build custom rules

Suppose you want to set the following pseudo-static rules for the article detail page, category list page, and single page:

  • Article detail page:/articles/我的文章标题.html
  • Category list page:/category/我的分类名/第2页.html
  • Single page:/about-us.html

Then, you can configure it like this:

  • archive===/articles/{filename}.html
    • Here are the{filename}The value corresponds to the "Custom URL" field you filled in when publishing an article (or the拼音alias automatically generated by the system).
  • category===/category/{catname}/(-{page})
    • {catname}The custom URL corresponding to the category.
    • (-{page})Represents that if pagination exists, it will be displayed/category/我的分类名/2otherwise only the current page will be displayed/category/我的分类名.
  • page===/{filename}.html
    • {filename}Custom URL for the corresponding single page.

Set custom URL at the content level

It is not enough to set the global pseudo-static rules in the background; you also need to make full use of the 'Custom URL' field when publishing or editing specific content.

Whether it is publishing articles, creating categories, or adding tags, AnQiCMS will provide a 'Custom URL' field on the corresponding editing page.The system will automatically generate a pinyin alias as the default value based on the title or name you enter.

  • Associated keywords:Integrate the most relevant core keywords into the URL.
  • Simple and easy to understand:The URL should be as short as possible and clearly express the content of the page.
  • Use hyphens:Use hyphens between words-Connect, rather than underscore_or space.
  • Ensure uniqueness: Custom URLs must be unique throughout the entire site; otherwise, the system will automatically add a numeric suffix to ensure uniqueness.

Additionally, for specific links that need to be permanently fixed and not changed by the pseudo-static rules, you can also use the 'Fixed Link' feature. Simply fill in the relative link (with/Starting with), it can be achieved.

Important reminder:

Custom rewrite rules are advanced settings, please operate with caution.The incorrect configuration may cause some pages of the website to be inaccessible.It is recommended to test the website thoroughly after each rule modification to ensure that all links can be accessed normally.If your website has been launched and indexed by search engines, after making significant changes to the URL structure, please make sure to use AnQiCMS's "301 Redirect Management" feature to redirect the old links to the new ones to avoid traffic loss and SEO demotion.

Through AnQiCMS's flexible pseudo-static rules, you can customize features to build beautiful and SEO-friendly URLs for your website, thereby achieving better rankings and more traffic in search engines.


Common Questions (FAQ)

1. Can the old links of the website still be accessed after modifying the pseudo-static rules? Will it be demoted by search engines?答:Directly modifying the rewrite rule for pseudo-static can usually lead to broken old links, making them inaccessible to users and search engines.To avoid this situation, AnQiCMS provides the '301 Redirect Management' feature.You should redirect all the old URLs that have been collected to the new URLs after modifying the rules.So, the search engine will understand that this is a permanent move, transferring the weight of the old link to the new link, thus minimizing the impact on SEO and avoiding demotion.

2. What is the difference between custom URL and fixed link? When should they be used?Answer:

  • Custom URL: Mainly used in conjunction with pseudo-static rules.{filename}or{catname}Variables. It generates variable URL paths based on the rules pattern you set, and you can manually optimize this alias part during content editing. This is the most commonly used SEO optimization method.
  • English