When operating a website, the structure and readability of links play a crucial role.A clear and friendly URL not only enhances the user experience but is also an indispensable part of SEO strategy.AnQi CMS is well-versed in this, providing powerful custom URL functions that allow you to flexibly shape the display links of documents and categories on the front page.

The core value and function of custom URL

The custom URL feature allows us to convert dynamic links that are traditionally composed of IDs into more descriptive and meaningful static or pseudo-static links. For example, a default might display asyourdomain.com/article?id=123The link, by combining custom URL and pseudo-static rules, can becomeyourdomain.com/news/anqicms-features.html. The main value of this change is reflected in the following aspects:

  1. Improve user experience:Users can get a general idea of the page content from the URL before visiting, enhancing the website's trust and professionalism.When a user needs to bookmark or share a link, a concise and clear URL is easier to accept.
  2. Optimize search engine rankings:Search engines tend to prefer to crawl and index URLs that have clear structures and contain keywords.Incorporating keywords related to the page theme into the URL helps search engines better understand the content of the page, which may improve the visibility of the website in search results.
  3. Easy to manage and promote:A unified and regular URL structure makes website content management more intuitive and convenient for promotion and data analysis across different platforms.

Custom URL generation and management

In AnQi CMS, whether it is articles, products, and other documents, or categories, single pages, and tags, custom URL settings are supported. This process usually unfolds in this way:

  • Automatic generation mechanism:When you create a new document, category, or tag, AnQi CMS will automatically generate a customized URL based on the pinyin of the title or name you enter. For example, if you enter "AnQi CMS tutorial", the system may automatically generateanqicms-jiaochengSuch an alias. This alias will be filled into the corresponding 'Custom URL' field.
  • Adjust manually for uniqueness:Automatically generated URLs are convenient, but may not fully meet your expectations or SEO strategies.Therefore, the system allows you to manually modify this custom URL.When setting manually, it should be especially noted that this custom URL must be unique throughout the entire website.If the entered URL already exists, the system usually adds some numbers or characters at the end to ensure uniqueness.For the custom URL of the label, the system also requires that it can only contain letters, numbers, and underscores, and cannot contain spaces to ensure the regularity of the link.
  • Scope of application:This function is widely used in multiple front-end display links such as document detail pages, category list pages, single page display, and tag pages.

The synergistic effect of static rules.

The key to understanding custom URLs lies in recognizing their close relationship with pseudo-static rules.The custom URL is simply an alias for the content, but what truly determines how this alias is presented in the frontend link is the website's pseudo-static rules.

The AnQi CMS provides various built-in pseudo-static patterns (such as numeric patterns, model naming patterns, category naming patterns, etc.) that can meet the needs of most websites.But if you want to implement a more personalized URL structure, you need to use the 'custom mode' to configure the pseudo-static rules.

When customizing the pseudo-static rules, specific URL variables need to be used, which are directly related to the customization of the URL function is{filename}and{catname}:

  • {filename}:This variable is used to introduce a 'custom URL' (i.e., the alias you set in the background) in the URL structure for a document, single-page, or tag.
  • {catname}:This variable is specifically used to introduce the 'custom URL' (alias) for categories.

For example, if you want the link of the document to display asyourdomain.com/module-name/custom-doc-url.htmlyou need to configure similar in the pseudo-static rules.archive===/{module}/{filename}.htmlThe rule. Only when the pseudo-static rule includes{filename}or{catname}This variable is when the custom URL you set for the document or category in the background can really take effect and be reflected in the display link on the front end.Otherwise, even if you set a custom URL, the front-end link may still follow the default ID or other rules.

The specific impact of custom URLs on the display links of the front end

By setting custom URLs and pseudo-static rules reasonably, you will be able to:

  • Create concise and clear links:Users and search engines can more easily understand the content pointed to by the link.
  • Integrate keywords to improve SEO:Include the target keywords in the URL to increase the relevance signal of the page.
  • Implement a consistent website structure:No matter the size of the website, it can maintain the uniformity of URL style, enhancing the brand professionalism.

In short, the custom URL feature of AnQi CMS provides a powerful and flexible tool that allows you to better control the external image of your website content.By carefully planning and configuring, you can build a website link system that is both aesthetically pleasing and beneficial for SEO.


Frequently Asked Questions (FAQ)

  1. I set a custom URL, but the front-end link did not change, why is that?This is likely because you have not configured the corresponding rules in the 'URL rewrite rules' to use this custom URL. The custom URL itself is just an alias for content, and it requires URL rewrite rules (especially those that include{filename}or{catname}The rule of the variable) to guide the system on how to present it in the front-end link.Please check your pseudo-static settings to ensure that you have selected a mode or configured custom rules that support custom URLs.

  2. Can a custom URL use Chinese characters or special symbols?To ensure the stability and compatibility of the link, it is recommended that the custom URL only use letters, numbers, and hyphens (-) or underscore (_Avoid using Chinese or other special characters. Anqi CMS will automatically generate拼音 aliases for Chinese titles you enter, but when manually modified, it is recommended to use English for practical and SEO-friendliness.

  3. If I change the custom URL of a page that has already been indexed by a search engine, what impact will it have? How should I handle it?Changing the URL of a page that has already been indexed will cause the old link to become invalid, which will affect user experience and may harm the search engine ranking of the page.In order to avoid this situation, if you indeed need to change the URL, be sure to use the '301 redirect' function provided by Anqicms.Redirect the old URL to the new URL, inform the search engine that the page has moved permanently, and pass the weight of the old URL to minimize SEO loss.