In website operation, making the web page address (URL) friendly to search engines is a crucial step.A clear and meaningful URL can not only help users quickly understand the content of the page, but it is also an important indicator for search engines to evaluate the quality and relevance of the content.AnQiCMS fully understands this, and therefore gave full consideration to the need for pseudo-static in the initial system design, providing an intuitive and convenient configuration method, so that your website content can be presented in the most beneficial way for search engines to crawl and understand.

Understanding pseudo-static and its value to SEO

First, let's briefly introduce what pseudo-static is. Usually, the URL of a dynamic web page contains question marks, equal signs, and a series of parameters, for exampleexample.com/article.php?id=123&category=newsThis form is convenient for internal system processing, but it has poor readability for users and search engines, and may also be considered as unstable content updates.

Static page technology can rewrite these dynamic URLs into a form similar to static pages, for exampleexample.com/article/123.htmlorexample.com/news/anqicms-seo-guide.html. URLs in this form:

  1. Improve search engine friendliness:Search engine spiders prefer URLs that are structured clearly and easily understandable. Static URLs can contain keywords, which help search engines determine the relevance of page content.
  2. Enhance user experience:Users can get a general idea of the page content through the URL, which increases trust and is convenient for memory and sharing.
  3. Benefits of content indexing:A clear hierarchy helps search engines better crawl and index website content, which may improve the ranking of the website in search results.
  4. Avoid duplicate content issues:By combining 301 redirect management, it can effectively avoid traffic loss and duplicate content penalties caused by the failure of old links after URL structure adjustment.

The pseudo-static function of AnQiCMS is specifically designed to achieve these goals.

AnQiCMS built-in pseudo-static rule configuration

AnQiCMS provides various preset rules for pseudo-static to users, and it is very easy to operate.To configure, just log in to the AnQiCMS backend, find "Function Management" in the left navigation bar, and click "URL Rewrite Rule" to enter the configuration page.

On this page, you will see the four built-in pseudo-static modes of the system, which are suitable for different URL styles and website positioning:

  1. Numeric mode:In this mode, document details, document lists, single-page details, document tags, etc., will use the content ID as the basis for generating URLs, for example/article/123.htmlIt is concise and clear, usually used on Chinese websites.
  2. Model naming pattern:If your website content is categorized by different "models" (such as articles, products), this pattern would be more suitable. The URL will include the model name, for example/product/anqicms-pro.htmlThis is common on English websites or multi-model websites.
  3. Category naming pattern 1:The URL will include the name of the category, usually used on Chinese websites with clear content structure and category orientation.
  4. Category naming pattern 2:The same includes category names, but may be slightly different in format, more suitable for English website URLs.

You can choose one of the modes according to the type and preference of your website.After selection, the system will immediately apply these rules without the need for any additional complex settings, greatly simplifying the configuration process of pseudo-static.

Customize the static rules to create a unique URL structure

If the built-in rules cannot fully meet your personalized pursuit of URL structure, AnQiCMS also provides a powerful custom mode, allowing you to carefully create a unique URL form according to your business needs.

On the page of pseudo-static rule configuration, after selecting "Custom mode", you will see that you can set multiple rules. Each rule is in the form of "rule name===rule value". These rules correspond to different page types of the website:

  • archiveUsed for document detail page.
  • categoryUsed for document list page (category page).
  • archiveIndexUsed for model homepage (such as article homepage, product homepage).
  • pageUsed for single page detail pages (such as About Us, Contact Information).
  • tagIndexUsed for tag homepage.
  • tagUsed for tag detail pages (showing the article list under a specific tag).

When defining 'rule value', you can flexibly use a variety of built-in variables to construct the URL structure. These variables need to be enclosed in curly braces{}including:

  • {id}: Unique ID of the content.
  • {filename}Custom link name for content (document, single page, tag).
  • {catname}Custom link name for category.
  • {catid}Unique ID of the category.
  • {module}Model table name for the content (usually the URL alias of the model).
  • {page}: Used to indicate the page number of pagination. Pay special attention that if pagination information needs to be included in the URL,{page}it must be placed inside parentheses, for example,(-{page}).