Today, as content management becomes increasingly important, a clear and friendly URL not only helps search engines better understand page content and improve the website's SEO performance, but also provides a better browsing experience for users and even contributes to brand promotion.AnQiCMS knows this point and provides a powerful and flexible custom URL alias function, allowing you to easily set personalized addresses for articles, categories, single pages, and even 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 delving into setting custom URL aliases, we first need to ensure that the website has enabled pseudo-static rules.This feature is the foundation for the function 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 'SEO Rules' option in the 'Function Management' menu of the AnQiCMS backend.Here, you can choose from several built-in pseudo-static modes of the system, or customize the rules according to your specific needs.{filename}or{catname}These variables are the keys that AnQiCMS recognizes and applies your custom aliases.If your rewrite 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 can greatly enhance its visibility in search engines and users' willingness to click.

  1. Enter the editing interface:You can create new articles by entering 'Document Management' under the 'Content Management' menu in the AnQiCMS backend, or select an existing article to edit under 'Document Management'.
  2. Find the 'Custom URL' field:In the article editing page settings, you will see a field named "Custom URL."
  3. Automatic generation and manual modification:By default, AnQiCMS will automatically generate a pinyin alias for the article title you input.This automatically generated alias is usually very practical.If you want to further optimize, 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 the alias you enter is duplicated with the existing content, the system will automatically add a random number at 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, which not only allows users to recognize the category topic at a glance but also helps search engines better understand the hierarchical structure of the website.

  1. Enter the editing interface:Go to the "Content Management" under "Document Category", you can choose to "Add New Category" or edit existing categories.
  2. Locate "Custom URL" under "Other Parameters":In the add or edit page of the category, find the collapsible area named "Other Parameters
  3. Operation method:Similar to the article alias, the system will automatically generate pinyin aliases based on the category name, and you can also manually modify them as needed.Similarly, the custom URL alias for categories also needs to ensure it is unique throughout the entire site.

To set a custom URL alias for a single page

For independent single pages like "About Us

  1. Enter the editing interface:In AnQiCMS background, click the 'Page Resources' menu, enter 'Page Management'. Here, you can add a new single page or edit an existing page.
  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 for a single page is the same as that for articles and category aliases. The system will provide a default pinyin alias, and you can also modify it yourself, ensuring its uniqueness.

Additional hint: The URL alias of the 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 "Content Management" menu, go to "Document Tags", where you can add or edit tags.
  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 label only supports letters, numbers, and underscores, and spaces or other special characters should be avoided.

Some practical suggestions: Create more friendly URLs

  • Concise and clear:Shorter URLs are easier to remember and share, and also beneficial for search engine crawling.
  • Keyword optimization:Including keywords highly relevant to the page content in the URL can enhance SEO effects. For example, an article about the installation tutorial of AnQiCMS can have a URL alias such asanqicms-installation-guide.
  • Use hyphens-:This is the practice of SEO, which helps search engines distinguish different words in the URL. Avoid using underscores_or directly connecting words.
  • Avoid special characters:except hyphens-and in some cases, underscores are allowed_It should be avoided to use other special characters 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 enhance user experience and the professionalism of the website.
  • URL updates and 301 redirects:If you decide to modify an existing, indexed URL alias by a search engine, please make sure to set the corresponding 301 redirect in the "Feature Management" section of the "301 Redirect Management" in the background.This ensures that traffic from the old URL is seamlessly transferred to the new URL, avoiding damage to search engine rankings and user experience.

Through the powerful custom URL alias feature provided by AnQiCMS, you can manage your website links with precision, thereby standing out in the fierce online competition and bringing more attention and value to your content.


Common Questions (FAQ)

Q1:Why doesn't the custom URL alias work on the front page?A1:Firstly, please confirm that your website has correctly enabled URL rewriting in the 'Function Management' -> 'URL Rewrite Rule' section of the AnQiCMS backend. Moreover, the URL rewriting rule (or custom rule) you have selected must include{filename}or{catname}The variables that can carry custom aliases. If these two items are not set properly, the custom alias will not be displayed correctly on the front end.

Q2:Custom URL alias must be in English or Pinyin? What if I use Chinese?A2:Strongly recommend using English or Pinyin for custom URL aliases, and using hyphens-Separate words. Although some browsers may support Chinese URLs, Chinese URLs are often encoded into a complex string of乱码 when spreading and copying in practice, which is not aesthetic and不利于用户记忆和分享,at the same time may affect