When operating a website, the structure and readability of links play a crucial role.An clear, friendly URL not only improves the user experience, but is also an indispensable part of search engine optimization (SEO) strategy.AutoCMS is well-versed in this, providing powerful custom URL features that allow you to flexibly shape the display links of documents and categories on the front page.

The core value and function of the custom URL

The custom URL feature allows us to convert traditional dynamic links composed of IDs into more descriptive and meaningful static or pseudo-static links. For example, a default link might look likeyourdomain.com/article?id=123The link, through the cooperation of custom URL and pseudo-static rules, can be changed toyourdomain.com/news/anqicms-features.html. The main value of this change is reflected in the following aspects:

  1. Enhance user experience:Users can get a general idea of the page content from the URL before accessing, enhancing the website's trust and professionalism.When a user needs to favorite or share a link, a concise and clear URL is also more easily accepted.
  2. Optimize search engine ranking:Search engines tend to crawl and index URLs that are well-structured and contain keywords.Embedding keywords related to the page theme in the URL helps search engines better understand the page content, 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 the Anqi CMS, whether it is articles, products, and other documents, or categories, single pages, and tags, custom URL settings are supported. This process is usually carried out as follows:

  • Automatic generation mechanism:When you create a new document, category, or tag, Anqi CMS will automatically generate a custom 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-jiaochengThis alias. This alias will be filled into the corresponding "custom URL" field.
  • Manual adjustment and uniqueness:The automatically generated URL is convenient, but it may not fully meet your expectations or SEO strategy.Therefore, the system allows you to manually modify this custom URL.When manually setting, it is especially important to note that this custom URL must be unique throughout the entire website.If the input 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 specification of the link.
  • Application scope:This feature is widely used in multiple front-end display links such as document detail pages, category list pages, single page display, and tag pages.

Collaborative effect of pseudo-static rules

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

The AutoCMS provides various built-in static URL modes (such as numeric modes, model naming modes, category naming modes, etc.), which 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, of which the one directly related to the custom URL feature is{filename}and{catname}:

  • {filename}:This variable is used to introduce a "custom URL" (i.e., the alias you set in the background) for documents, single-page applications, or tags in the URL structure.
  • {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.html, you need to configure similar in the pseudo-static rulesarchive===/{module}/{filename}.htmlThe rule. Only when the pseudo-static rule includes{filename}or{catname}This variable is, the custom URL you set for documents or categories in the background will truly 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 effect of custom URL on the front-end display link

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

  • Create simple and clear links:Both users and search engines can understand the content the link points to more easily.
  • Incorporate keywords to improve SEO:Include the target keywords in the URL to increase the relevance signals of the page.
  • Implement a consistent website structure:No matter the size of the website, it can maintain the consistency of URL style, enhancing the brand professionalism.

In summary, the custom URL feature of Anqi CMS provides a powerful and flexible tool, allowing you to better control the external image of your website content.Through careful planning and configuration, you can build a website link system that is both aesthetically pleasing and有利于SEO.


Common 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 rule in the "SEO-friendly Rules" to use this custom URL. The custom URL itself is just an alias for content and requires SEO-friendly rules (especially those containing{filename}or{catname}The rules 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 the mode supporting custom URLs or custom rules has been selected.

  2. Custom URL can it 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(_

  3. What impact will there be if I change the custom URL of a page that has already been indexed by a search engine? How should I handle it?Changing the URL of the page that has been included will cause the old link to become invalid, which will affect the user experience and may harm the search engine ranking of the page.To avoid this situation, if you indeed need to change the URL, be sure to use the '301 Redirect' feature provided by the 'Security CMS'.Redirect the old URL to the new URL, inform search engines that the page has permanently moved, and thus pass the weight of the old URL to minimize SEO loss.