In website operation, Search Engine Optimization (SEO) plays a crucial role, and a friendly URL structure is a key factor in improving a website's performance in search engines.An clear and meaningful URL can not only help search engines better understand the content of the page, but also allow visitors to see the theme of the page at a glance, enhancing the user experience.The traditional dynamic URL often contains parameters that are difficult to understand, which is not friendly to SEO and users. 幸运的是,安企CMS提供了强大的伪静态规则配置功能,让您可以轻松优化网站的URL结构。

Understand the importance of URL rewrite

Pseudo-static URL, as the name implies, it looks like a static HTML file, but it is actually generated dynamically by the server. For example, a dynamic URL might beexample.com/article.php?id=123&category=news,while pseudo-static may change toexample.com/news/article-123.htmlorexample.com/news/article-anqicms.html.

The benefits of this change are obvious:

  • Enhance search engine crawling efficiency:Search engine spiders prefer to crawl static or pseudo-static URLs with clear structure and explicit paths.
  • Improve keyword ranking:Including keywords in the URL helps search engines understand the page topic and may improve the ranking of relevant keywords.
  • Enhance user experience:A concise and readable URL is more convenient for users to memorize and share, and it is also easier to judge the content of the page.
  • Increase click-through rate:A clear URL in search results is more likely to attract users to click.

Auto CMS understands the importance of pseudo-statics for content operation, so it has been designed as one of the core functions from the beginning, committed to helping small and medium-sized enterprises and content operation teams efficiently carry out SEO optimization.

AnQi CMS Overview of the URL Rewrite Function

AnQi CMS provides two ways for users to configure URL rewrite rules: one isBuilt-in preset rulesEnglish, allowing you to quickly apply common URL patterns; secondlyHighly flexible custom rulesEnglish, allowing you to design unique URL structures according to specific needs.

No matter if you are a novice operator or a senior SEO expert, you can find a static configuration solution that suits you in Anqi CMS.

Built-in static rules, ready to use

If you want to quickly enable pseudo-static pages or have no special complex requirements for URL structure, the four built-in pseudo-static rules provided by Anqi CMS will be your ideal choice:

  1. Digital Mode:This is a simple and intuitive pattern, where document details, document lists, single pages, tags, and so on will use their respective IDs as the basis for generating URLs. For example,/article-123.htmlThis pattern is particularly suitable for Chinese websites, with a simple and clear structure.
  2. Model Naming Pattern:In this mode, the English alias of the model (such as articles, products) will be included in the URL. For example,/article/anqicms-tutorial.htmlThis is very useful for English sites or websites that want to distinguish content models via URL.
  3. Category naming pattern 1:The URL will include the alias of the category. For example,/news/anqicms-update.htmlThis pattern is also common on Chinese sites, which can clearly show the content ownership.
  4. Category naming pattern 2:The same is based on category naming, but it may be slightly different in structure from Pattern 1, providing more options. It is also often used on English sites.

To use these built-in rules, you just need to enter the Anqi CMS backend management interface, find the "Feature ManagementHere, you can directly select one of the built-in rules and save.The system will automatically generate a URL that conforms to the rule.

Customize the pseudo-static rules, flexibly control

If you have a deeper understanding of website structure and SEO, or want to create unique URLs for specific types of pages, then the custom pseudo-static rules of Anqi CMS will be your weapon. It allows you to define pseudo-static rules separately for the six main page types of your website:

  • Document Details (archive):Such as article, product detail page.
  • Document List (category):Such as article list, product list page.
  • Model homepage (archiveIndex):The homepage of all articles or all products.
  • Single page (page):Pages such as “About Us”, “Contact Us”, etc., are independent.
  • Tag list (tagIndex):The list page of all tags.
  • Tag details (tag):Single label detail page.

Each custom rule follows规则名===规则值format. In the rule value, you can combine various variables provided by Anqi CMS to construct URLs:

  • {id}:Data ID, such as document ID, category ID.
  • {filename}English data custom link name.This is usually the unique English alias manually inputted when publishing documents, creating single-page or tags, or automatically generated by the system based on the title.
  • {catname}:Custom category link name. It is the English alias you entered when creating the category or the pinyin automatically generated by the system.
  • {catid}Category ID.
  • {module}:Model table name, such as “article” or “product”.
  • {page}Page number.Please pay special attention, the variable for pagination page number needs to be enclosed in parentheses, for example(/{page})When the page does not have pagination, the URL will not display the page number part, keeping it concise.

For example, you may want the URL of the article detail page to include the model name, article ID, and.htmlend with:archive===/{module}-{id}.html

If you want the URL of the article list page to include the category name and support pagination, you can configure it like this:category===/{catname}(/{page})

While you are configuring{filename}or{catname}Remember when setting this kind of custom link name variable:

  • The CMS will automatically generate pinyin based on the Chinese title you enter as the default custom URL.
  • You can manually modify these custom URLs, but you must ensure that they are unique across the entire site. Otherwise, the system will automatically add random numbers at the end to ensure uniqueness.
  • The manually input custom URL is best used with letters, numbers, and underscores, avoiding special characters and spaces to ensure the friendliness of the URL.

Configure custom rules and don't forget to click save,be sure to test your website thoroughlyto ensure all links can be accessed normally.

Brief guidance on configuration steps

  1. Go to the background:Log in to your Anqi CMS backend management interface.
  2. Navigate to Feature Management:Find and click 'Feature Management' in the left menu.
  3. Select the Rule for Virtual Static Page:Click the 'Virtual Static Page Rule' option in the Feature Management page.
  4. Select or customize:
    • Select built-in rules:Directly select a pattern you need from the preset rules, then click save.
    • Customize rules:Select "Custom Mode", then in the input box of the corresponding page type (such as "Document Details", "Document List", etc.), follow规则名===规则值The format fills in your pseudo-static rules. Please refer to the variables and examples mentioned above.
  5. Save and test:Click Save after filling in.It is an important step: After saving, be sure to carefully check all pages of the website (including article details, lists, single pages, tag pages, etc.), to ensure that the URL has been generated according to your configuration and can be accessed normally.

Optimize Practice Suggestions

  • Keep the URL concise:Try to shorten the URL length, remove unnecessary words.
  • The URL includes keywords:Use core keywords related to the page content in the URL, but avoid overcrowding.
  • Use hyphens-Word separation:Hyphens are the recommended URL word separator by search engines, better than underscores_More popular.
  • Manage custom URLs well.{filename}and{catname}):Ensure these aliases are descriptive, concise, and unique.If the content title changes, consider whether you need to update the custom URL, but also pay attention to the configuration of 301 redirects to avoid the failure of the old URL.
  • Use 301 redirects wisely:If your URL structure is