How is the custom URL alias of the document automatically generated? What should be paid attention to when manually setting it?

Calendar 👁️ 54

As an experienced CMS website operation person, I am very clear about the key role of custom URL aliases in website SEO and user experience.In Anqi CMS, URL alias management has both an intelligent automatic generation mechanism and provides flexible manual setting options.

The automatic generation mechanism of custom URL aliases in AnQi CMS

AnQi CMS has built-in an intelligent URL alias automatic generation mechanism during the content publishing process to facilitate users and ensure the friendliness of URLs.When you create a document, category, tag, or single page, if you do not manually specify a custom URL, the system will automatically generate a URL alias based on the title of the content you enter.

This automatic generation mainly relies on converting content titles to pinyin.For example, if you enter the title of the article as "Anqi CMS User Guide", the system may automatically generate an alias similar to "anqicms-shi-yong-zhi-nan".This feature is designed to reduce the repetitive labor of operations personnel, ensuring that newly published content can immediately have an available, search engine-friendly URL structure.

In order to avoid URL conflicts, Anqi CMS has also designed additional processing logic.Even if two different titles produce the same alias after being converted to pinyin, the system will automatically append a random number or other identifier to one of the aliases to ensure that each URL alias is unique within the entire site.This is crucial for avoiding content repetition and improving website accessibility.

It should be emphasized that this automatic generation feature is usually enabled in the pseudo-static rules of the website{filename}or{catname}This kind of variable will take effect.{filename}Custom URL aliases are usually used for documents, single pages and tags, and{catname}The custom URL alias is specifically used for classification.This means that only when your pseudo-static configuration explicitly specifies to use these alias variables, the generated aliases will be reflected in the final page links.

things to pay attention to when manually setting custom URL aliases

Although Anqi CMS provides convenient automatic generation features, in many cases, we still need to manually intervene to achieve more accurate URL optimization. When manually setting custom URL aliases, there are several key points that need to be paid special attention to:

first, Ensure the uniqueness of the entire site is a core principle.The custom URL alias entered manually must be unique throughout the entire website.If the manually set alias conflicts with an existing URL, the system may still add random numbers or characters after it to enforce uniqueness, which may deviate from the URL structure you expect.Therefore, it is best to perform a brief check before setting up to ensure that the alias you have chosen is not being used by other content.

secondly,Whether the custom URL alias takes effect depends on your pseudo-static rule configuration. As mentioned in the automatically generated part, manual aliases are only included in the pseudo-static rules of the website.{filename}(used for documents, single pages, tags) or{catname}Used for classification) variables, they will be reflected in the front-end page link. If your pseudo-static rules are based on ID (such as/{module}-{id}.htmlIf a manually set URL alias does not match a fixed pattern, it will not be used. As a website operator, understanding and correctly configuring URL rewrite rules is the foundation of URL optimization.

Moreover,Pay attention to the naming conventions of different content types. For content models such as the corresponding “article” model/article/, or the corresponding “product” model/product/its URL alias must be in lowercase letters.This will affect the model part in the URL structure.-) or underscore (_Combine without spaces or special symbols.Especially the custom URL alias of the tag, the document clearly states that it can only contain letters, numbers, and underscores, and cannot contain spaces.A concise, clear, and descriptive URL is more beneficial for search engine crawling and user memory.

Finally,Consider the impact of URL changesIf your website has been launched and indexed by search engines, frequently changing custom URL aliases may have a negative impact on SEO, causing indexed pages to become 404 errors, thereby losing traffic and rankings.In this case, the 301 redirect management feature provided by Anqi CMS is particularly important.When you have to change an existing URL, be sure to set up a 301 redirect to permanently point the old URL to the new URL, in order to retain the original SEO weight and guide users to the new page.

By deeply understanding the URL alias generation mechanism and manual setting points of Anqi CMS, you will be able to manage the website's URL structure more effectively, thereby improving the website's SEO performance and user experience.


Frequently Asked Questions (FAQ)

1. Why did the front-end link not change even though I manually set the custom URL alias?

This is usually due to an incorrect configuration of your website's static page rules. Custom URL aliases manually set only include in the website's static page rules.{filename}(used for documents, single pages, tags) or{catname}This variable will take effect when used for classification.Please check the settings under "Feature Management -> URL Rewrite Rules", ensure that you have selected a rule that supports alias variables, or use these variables correctly in custom rules./{module}-{id}.htmlThen the custom alias will not be applied.

Why does the URL alias generated by AnqiCMS end with a string of numbers?

The automatic generation mechanism of Anqi CMS will create a URL alias based on the pinyin of the content title.If a URL alias that is automatically generated with the new content title already exists, the system will automatically append a string of random numbers or a specific identifier to the newly generated alias to ensure the uniqueness of each URL.This is a strategy of AnQi CMS to ensure that URLs are not duplicated.If you do not wish to see these numbers, you can try manually setting a more unique alias that does not conflict with existing URLs.

3. What are some**practical suggestions**when manually setting custom URL aliases?

**Practical suggestions include:**

  • Keep it concise and descriptive: The URL should be short and clear, and accurately reflect the content of the page.
  • Use lowercase letters, numbers, and hyphens: Use lowercase letters and hyphens between words (-Separate with parentheses, not spaces or underscores (unless it's a custom URL tag, in which case underscores are allowed). Avoid special characters.
  • Contains keywordsInclude core keywords related to the page content in the URL, which helps with SEO.
  • Website uniquenessEmphasize again that the alias manually set must be unique throughout the site, to avoid the system automatically appending numbers.
  • Exercise caution when changing the URLs that have already been included.For pages that have been indexed by search engines, frequent changes to the URL can have a negative impact on SEO. If a change is indeed necessary, it is essential to set up a 301 permanent redirect.

Related articles

How to set up the scheduled publication function of the document, to realize automated content going online?

As an experienced CMS website operation personnel of an enterprise, I am well aware of the key role of content publishing efficiency and strategic planning in the success of the website.In daily work, the automated deployment of content not only saves valuable human resources, but also ensures the sustainability and accuracy of website content updates, thereby effectively attracting and retaining users.Aqin CMS provides a very practical feature - scheduled document release.

2025-11-06

What rich text editing features does the Anqi CMS document content editor support, such as the material library, image and video insertion?

As an experienced CMS website operation personnel of a security company, I know that content creation is the core of website operation.An efficient and comprehensive content editor is crucial for improving content production efficiency and quality.AnQi CMS is well-versed in this, its built-in content editor integrates a variety of rich text editing features, aiming to provide convenient and powerful tools for content creators, ensuring that they can easily publish high-quality website content.The Anqi CMS content editor provides a comprehensive and intuitive rich text editing environment for content creators.

2025-11-06

How can the keywords of the document be managed and selected efficiently, and does it support a keyword library?

As an experienced CMS website operation person in the security industry, I know the core status of keywords for website content marketing and SEO optimization.Effective keyword management not only enhances content visibility, but is also crucial for attracting target users and improving conversion rates.AnQi CMS provides a powerful and flexible solution in this field, significantly improving my daily operational efficiency.

2025-11-06

How to use document recommendation properties to implement content display classification on the front end when adding a new document (such as headlines, recommendations)?

AnQiCMS (AnQiCMS) is an efficient and customizable content management system that provides website operators with a wealth of content management tools.The "Document recommendation attribute" feature is the key to refined content display.It allows operators to tag documents with specific markers in the background, thereby flexibly categorizing and presenting content through the frontend template, such as setting important news as 'headlines' or listing selected articles as 'recommended'.

2025-11-06

How does Anqi CMS distinguish and apply the SEO title, standard link, and fixed link of the document?

AnQi CMS provides fine SEO tools in content management and website operation, among which the distinction and application of SEO titles, canonical links, and fixed links are crucial for the performance of the website in search engines.As an experienced CMS operator, I will elaborate on these features and how they work together to enhance the visibility and user experience of the website.

2025-11-06

What role does the content model play in AnQi CMS? What models are provided by default in the system?

In the daily operation of AnQi CMS, the content model is undoubtedly the cornerstone, defining the skeleton and soul of the website's content.As an experienced operator proficient in AnQi CMS, I fully understand the importance of the content model for achieving efficient and personalized content management.It is not only the foundation of content creation, but also the key to content display, retrieval, and optimization.The content model plays a crucial role in Anqi CMS, as it first defines the structure and properties of various types of content on the website.

2025-11-06

How to create and manage a custom content model and add personalized fields to the model?

As a long-term operator deeply involved in AnQiCMS, I know that content is the lifeline of a website, and flexible and scalable content management capabilities are the foundation of efficient operation.One of the core features provided by AnQiCMS in content management is its powerful custom content model mechanism.This greatly endows us with the ability to calmly respond to diverse content needs and achieve personalized display.

2025-11-06

What are the choices for field types in a custom content model? Such as single-line text, multiple choice, etc.

As a senior security CMS website operator, I fully understand that the core flexibility of the content management system is crucial for efficient operation.The design of AnQi CMS in the content model is one of its advantages, allowing users to highly customize the content structure according to actual business needs.This flexibility is reflected in its rich custom field types, ensuring that different types of content can be managed and displayed accurately and standardly.

2025-11-06