Utilize the advantages of the AnQi CMS custom URL aliases to create SEO-friendly pseudo-static links
In website operation, a clear and semantic URL not only allows users to understand the page content at a glance, but also gains the favor of search engines, thereby improving the inclusion and ranking of the website.AnqiCMS is well-versed in this, providing powerful custom URL aliasing and flexible pseudo-static configuration features to help website operators easily achieve this goal.
Why is it so important to customize URL aliases and pseudo-statics?
Imagine, the link of 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 has better readability, making it easier for users to remember and share.The search engine also prioritizes URLs that are well-structured and contain keywords when crawling and understanding page content.
The pseudo-static technique uses URL rewriting to convert dynamically parameterized URLs into static file path-like URLs, retaining the flexibility of dynamic pages while also having the SEO advantages of static pages.The Custom URL Alias feature provided by Anqi CMS allows you to set unique, semantic short links for each article, category, single page, and even tags, based on pseudo-statics, further enhancing the friendliness and information content of URLs.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
In the background management interface of Anqi CMS, 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 tags, you will find a field named 'Custom URL'.
When we fill in the content title, the Safe CMS will intelligently generate a suggestive URL alias based on the pinyin of the title.For example, if an article title is "Anqi CMS TutorialOf course, you can manually modify this alias according to your actual needs to make it more recognizable or include 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 of the URL and SEO effect, it is recommended that you manually create semantic and unique aliases as much as possible.For the custom URL alias of tags, the system currently requires it to only contain letters, numbers, and underscores, and cannot contain spaces. This needs to be particularly noticed when setting it.
Configure the pseudo-static rules to make the aliases 'alive'
It is not enough to set custom URL aliases to make them display on the front end.To make these aliases truly "function", and become the front-end links of the website, we still need to configure under "Function Management" -> "Fake Static Rule Management".
The Anqi CMS simplifies operation by incorporating multiple preset rewrite rules, such as numeric patterns, model naming patterns, and category naming patterns, among others. These patterns can meet the basic needs of most websites.However, in order to fully utilize the carefully set custom URL aliases, it is necessary to select the 'Custom Mode' for configuration.
In custom mode, you can set pseudo-static rules for six types of pages such as document details, document list, model homepage, page, tag list, and tag details. These rules are defined through specific variables (enclosed in curly braces){}Package) to placeholder, so that the system can dynamically replace it with the corresponding value when generating links. Among them, the most core variables include:
{id}【en】The unique ID of the content.{filename}: Custom URL alias for articles, single pages, or tags.{catname}【en】The custom URL alias of the category.{module}: Model table name for the content (such asarchiverepresenting an article,productrepresenting a product).{catid}The unique ID of the category.{page}: represents the page number, usually enclosed in parentheses to indicate an optional page number section, for example(-{page}).
Let's look at a few examples to see how to make use of{filename}and{catname}Build personalized pseudo-static links:
- Article detail page (using)
{filename}Alias): If your article alias isanqicms-tutorialquot;,"hope the link displays aswww.yourdomain.com/article/anqicms-tutorial.htmlThen the pseudo-static rules for the document details can be set as:archive===/{module}/{filename}.html - Category list page (using)
{catname}Alias): If your category alias iswebsite-buildingquot;,"hope the link displays aswww.yourdomain.com/category/website-building/, then the pseudo-static rules for the category list can be set as: