In today's increasingly important content management, a clear and friendly URL address not only helps search engines better understand the content of the page, improve the SEO performance of the website, but also provides users with a better browsing experience, and even helps with brand promotion.AnQiCMS understands this and provides a powerful and flexible custom URL alias feature, allowing you to easily set personalized addresses for articles, categories, single pages, and tags on your website.

Next, we will explore how to finely manage these URL aliases in AnQiCMS together.

Core prerequisite: Enable pseudo-static rules

Before setting up custom URL aliases in depth, we first need to ensure that the website has already enabled pseudo-static rules.This feature is the foundation for the role of custom URL aliases, as it allows the server to convert dynamically generated page addresses into simpler and more descriptive static forms.

You can find the 'Static Rules' option in the 'Function Management' menu of the AnQiCMS backend.Here, you can choose from several built-in pseudo-static modes or customize rules according to your specific needs.It is important that the rules you choose or customize include{filename}or{catname}The variables are the keys that AnQiCMS recognizes and applies to your custom aliases.If your pseudo-static rules do not include these variables, the front-end may still not display the custom aliases correctly.

Set custom URL aliases for articles

The article is the core of the website content, setting a meaningful URL alias for it can greatly enhance its visibility in search engines and users' willingness to click.

  1. Enter the editing interface:You can create a new article by going to the 'Content Management' menu in the AnQiCMS backend, or edit an existing article by selecting one from 'Document Management'.
  2. Find the "Custom URL" field:In the various settings of the article editing page, you will see a field named "Custom URL".
  3. Automatic generation and manual modification:By default, AnQiCMS will automatically generate a pinyin alias based on the title of the article you enter.This automatically generated alias is usually very practical. However, if you want to optimize it further, you can manually enter an alias that is more in line with SEO strategies or brand style.
  4. Ensure uniqueness:Please note that the custom URL alias must be unique throughout the entire website.If you enter an alias that already exists, the system will automatically add a random number to the end of the alias to ensure its uniqueness.However, we recommend that you plan manually as much as possible to ensure that each alias clearly expresses its content.

Set a custom URL alias for categories

The classification structure of the website is an important way to organize content and guide users to browse.A good category URL alias can not only help users identify the theme of the category at a glance, but also help search engines better understand the hierarchical structure of the website.

  1. Enter the editing interface:Go to "Content Management" under "Document Categories", where you can choose to "Add a new category" or edit an existing one.
  2. Locate the "Custom URL" in the "Other Parameters":In the category addition or editing page, find the collapsible area of "Other Parameters", and after expanding, you will see the "Custom URL" field.
  3. Operation method:Similar to the article alias, the system will automatically generate a pinyin alias according to the category name, and you can also manually modify it as needed.Similarly, the custom URL alias for the category also needs to be ensured to be unique throughout the site.

Set a custom URL alias for a single page

For independent pages like "About Us", "Contact Information", "Terms of Service", although their content may not be updated frequently, the friendliness of their URL address is also not to be ignored.

  1. Enter the editing interface:In AnQiCMS backend, click the 'Page Resources' menu, go to 'Page Management'. Here, you can add new single pages or edit existing pages.
  2. Find the "Custom URL" field:In the single-page editing page, directly find and fill in the 'Custom URL' field.
  3. Operation method:The operation process of custom URL alias on a single page is the same as that of articles and category aliases. The system will provide a default pinyin alias, and you can also modify it yourself, ensuring its uniqueness.

Extra hint: The URL alias for (Tag)

In addition to articles, categories, and single pages, AnQiCMS also allows you to set custom URL aliases for content tags (Tag).This is very useful for aggregating content through tags and for SEO optimization.

  1. Enter the editing interface:Under the \
  2. Find the "Custom URL" field:In the label editing page, you will see the "Custom URL" field.
  3. Character limit:It is particularly important to note that the custom URL alias of the tag only supports letters, numbers, and underscores, and spaces or other special characters should be avoided.

Some practical suggestions: Create a more friendly URL

  • Simple and clear:The shorter the URL, the easier it is to remember and share, and it is also beneficial for search engine crawling.
  • Keyword optimization:Including keywords highly relevant to the page content in the URL can improve SEO effectiveness. For example, for an article about the AnQiCMS installation tutorial, the URL alias could beanqicms-installation-guide.
  • Use hyphens-bar:This is an SEO practice that helps search engines distinguish different words in URLs. Avoid using underscores._Or connect words directly.
  • Avoid special characters:Except for hyphens-and underscores are allowed in some cases_special characters should be avoided in URLs to prevent compatibility or parsing issues.
  • Maintain consistency:The URL structure and alias naming conventions of the entire website should be consistent, which can improve user experience and the professionalism of the website.
  • URL update and 301 redirect:If you decide to modify an existing, search engine-indexed URL alias, be sure to set the corresponding 301 redirect in the background "Function Management" under "301 Redirect Management".This ensures that the traffic from the old URL is seamlessly transferred to the new URL, avoiding damage to search engine rankings and user experience.

By using the powerful custom URL alias function provided by AnQiCMS, you can manage the links of your website with precision, stand out in the fierce online competition, and bring more attention and value to your content.


Frequently Asked Questions (FAQ)

Q1: Why did the custom URL alias I set not take effect on the front-end page?A1: Firstly, please confirm that your website has correctly enabled pseudo-statics in the "Function Management" -> "Pseudo-static Rules" section of the AnQiCMS backend. And the pseudo-static rules (or custom rules) you have chosen must include{filename}or{catname}Variables that can bear custom aliases. If these two items are not set correctly, the custom alias will not be displayed correctly on the front end.

Q2: Is the custom URL alias required to be in English or Pinyin? What if I use Chinese?A2: It is strongly recommended to use English or Pinyin as a custom URL alias, and use hyphens-Come to separate words. Although some browsers may support Chinese URLs, Chinese URLs are often encoded into a complex string of乱码 during actual dissemination and copying, which is not aesthetically pleasing and is not conducive to user memorization and sharing, and may also affect