Utilize the advantages of AnQi CMS custom URL alias, creating search engine friendly static links

In website operation, a clear and semantic URL address not only allows users to understand the page content at a glance but also wins the favor of search engines, thereby improving the inclusion and ranking of the website.AnqiCMS (AnqiCMS) is well-versed in this, providing powerful custom URL alias and flexible static configuration features to help website operators easily achieve this goal.

Why are custom URL aliases and static links so important?

Imagine, a link on a web page iswww.yourdomain.com/article.php?id=123&category=techand the other iswww.yourdomain.com/technology/anqicms-features/It is evident that the latter is more readable, making it easier for users to remember and share.Search engines also prioritize well-structured, keyword-rich URLs when crawling and understanding page content.

Static URL technology uses URL rewriting to convert dynamic parameterized URLs into static file path-like URLs, thus retaining the flexibility of dynamic pages while also having the SEO advantages of static pages.The Custom URL alias feature provided by AnQi CMS is based on pseudo-static, allowing you to set unique, semantically meaningful short links for each article, category, single page, and tag, further enhancing the friendliness and information content of the URL.This will directly affect the website's performance in search engines, bringing better rankings and natural traffic.

The setting entry and generation logic of custom URL aliases in Anqi CMS

On the AnQi CMS backend management interface, setting a custom URL alias for content is an intuitive and important step.No matter if you are editing an article, creating a category, managing a single page, or naming a tag, you will find a field named 'Custom URL'.

After we fill in the content title, Anqi CMS will intelligently generate a suggested URL alias according to the pinyin of the title.For example, the title of an article is "Anqi CMS Tutorial", and the system may automatically generate "anqicms-jiaocheng" as an alias.Of course, you can manually modify this alias according to your actual needs to make it more recognizable or contain more precise keywords.For example, change it to 'anqicms-tutorial' or 'anqicms-guide'.

It should be noted that whether automatically generated by the system or manually entered, the custom URL alias must be unique throughout the entire site.If the alias entered already exists, the system will automatically append some numbers to ensure uniqueness.To ensure the cleanliness and SEO effect of the URL, it is recommended that you manually create semantic and unique aliases as much as possible.For the custom URL alias of the label, the system currently requires that it can only contain letters, numbers, and underscores, and cannot contain spaces. This needs to be especially noticed when setting it.

Configure the pseudo-static rules to make the alias 'alive'

Only setting a custom URL alias is not enough to make them display on the front page.To make these aliases truly take effect, become the front-end link of the website, we still need to configure under the 'Feature Management' 'URL Rewrite Rule Management'.

AnQi CMS to simplify operations, built-in a variety of preset static rules, such as numeric patterns, model naming patterns, and category naming patterns, etc., these patterns have already met the basic needs of most websites.However, to fully utilize the custom URL aliases meticulously set up, you must choose the 'Custom Mode' for configuration.

In the custom mode, you can set up pseudo-static rules separately for six types of pages such as document details, document list, model homepage, page, tag list, and tag details. These rules are set through specific variables (in curly braces{}Packaging) to occupy, so that the system can dynamically replace it with the corresponding value when generating links. The most core variables include:

  • {id}: Unique ID of the content.
  • {filename}: The custom URL alias of the article, single page, or tag.
  • {catname}Custom URL alias for a category.
  • {module}Model table name of the content (such asarchiveRepresents articles,productRepresents products).
  • {catid}Unique ID of the category.
  • {page}: Page number, usually enclosed in parentheses to indicate an optional page number part, for example(-{page}).

Let's see how to make use of several examples{filename}and{catname}to build personalized static links:

  1. Article detail page (using{filename}alias): If your article alias isanqicms-tutorialthen you want the link to display aswww.yourdomain.com/article/anqicms-tutorial.html, then the pseudo-static rule for the document details can be set to:archive===/{module}/{filename}.html
  2. Category list page (using{catname}alias): If your category alias iswebsite-buildingthen you want the link to display aswww.yourdomain.com/category/website-building/then the pseudo-static rule for the category list can be set to: