Can I customize the URL paths for articles, categories, and single pages, and how do I do it?

Calendar 👁️ 80

In website operation, a clear and meaningful URL path not only improves user experience, but is also one of the key factors in search engine optimization (SEO).AnqiCMS as an efficient content management system fully considers this need and provides the function of flexible customization of articles, categories, and single page URL paths.

How does AnqiCMS support custom URL?

AnqiCMS has built-in powerful pseudo-static functions, which allow your website pages to have the same URL structure as static HTML files, even if their content is dynamically generated.This kind of static-like URL is easier for users to understand and remember, and it is also easier for search engines to crawl and index, thus improving the overall SEO performance of the website.

AnqiCMS allows you to define personalized URL aliases directly when publishing content and provides global static rule configuration to ensure that these custom URLs can work normally.This means you can摆脱 traditional CMS fixed rigid URL format, according to your content strategy and SEO needs, create a unique URL.

Operation steps for custom URL path

To customize the URL path of articles, categories, and single pages, you need to understand and operate at two main levels: the first is the content-level custom URL entry, and the second is the system-level static rules configuration.

First step: Understand the variables in the pseudo-static rule

Before customizing the specific URL, we first need to understand several key variable placeholders in the AnqiCMS pseudo-static rules. They are the basis for building dynamic URLs:

  • {id}The unique ID of the content (article, category, single page, etc.).
  • {filename}The value filled in the 'Custom URL' field in the content backend, which is usually the pinyin of the content title or a custom English alias.
  • {catname}The value entered in the 'Custom URL' field of the category backend, usually the pinyin or custom English alias of the category name.
  • {catid}Unique ID of the category.
  • {module}: The URL alias of the content model (such as article, product).
  • {page}:The page number for pagination.

After understanding these variables, you can combine them according to your needs to create various URL structures in the pseudo-static rules.

Step two: Customize the article's URL path

When you publish or edit articles on the AnqiCMS backend, you can set a unique URL path for each article.

  1. Go to the editing page:Navigate to "Content Management" -> "Document Management", select "Publish Document" or click the "Edit" button on an existing article.
  2. Find the "Custom URL" field:Below the article editing interface, you will usually find an input box named "Custom URL" in the "Other Parameters" area.
  3. Enter your custom path:AnqiCMS will automatically generate a default pinyin URL alias based on the article title you enter.If you are not satisfied, you can manually enter the English alias you want in this input box.
    • Important reminder:This custom URL must be unique across the entire site. If the alias already exists, the system may automatically add a numeric suffix to ensure its uniqueness.
  4. Save article:After entering, save your article.

The value of this 'custom URL' will correspond to the static rules in.{filename}Variable.

Moreover, on the article editing page, you can also find the 'Fixed Link' field.This field is used to set the canonical URL of the current page, mainly for SEO purposes, to inform search engines which is the authoritative version of the content to avoid duplicate content issues.If not required, it can usually be left blank.

Step 3: Custom category URL path

The URL path of the category page can also be customized, which is crucial for building a clear website structure and improving the SEO of the category page.

  1. Enter the category editing page:Navigate to 'Content Management' -> 'Document Category', click the 'Edit' button next to the category you want to edit.
  2. Find the "Custom URL" field:In the "Other Parameters" area of the category editing page, you will see a "Custom URL" input box.
  3. Enter your custom path:Similarly, the system will automatically generate a pinyin alias based on the category name. You can modify it to a more descriptive English alias as needed.
    • Important reminder:The custom URL of the category also needs to ensure uniqueness throughout the site.

The value of this 'custom URL' will correspond to the static rules in.{catname}Variable (or can also be used in some rules){filename})

Step 4: Customize the URL path of a single page

A single page in AnqiCMS, such as “About Us”, “Contact Us”, etc., can also have a concise and clear custom URL.

  1. Enter the page to edit the page:Navigate to "Page Resources" -> "Page Management", select "Add Single Page" or click the "Edit" button of an existing single page.
  2. Find the "Custom URL" field:In the single-page editing page, you can set a unique path alias for this page in the 'Custom URL' input box.
  3. Enter your custom path:Enter the English alias you wish to use and ensure its uniqueness.

The value of this 'custom URL' will correspond to the static rules in.{filename}Variable.

Advanced settings: Customize pseudo-static rules

After completing the URL customization at the content level, the next most critical step is to configure the global pseudo-static rules to make these custom URLs truly effective and accessible.

  1. Enter the static rule management:Navigate to "Function Management" -> "Static Rule".
  2. Select or configure a custom mode:AnqiCMS provides some predefined static rules patterns (such as number patterns, model naming patterns, category naming patterns, etc.), you can choose one to apply quickly.
    • To achieve the most flexible customization, you need to select "Custom Mode".
  3. Edit rules:In custom mode, you will see a text box listing multiple sets of rules, each in the format规则名===规则值. For example:
    
    archive===/{module}/{filename}.html
    category===/{catname}/
    page===/page-{filename}.html
    
    • archive:Define the URL structure of the article detail page.
    • category:Define the URL structure of the category list page.
    • page:Define the URL structure of the single-page detail page.
    • Other rules include.archiveIndex(Model Home),tagIndex(Tag Home),tag(Tag details) etc., you can modify it according to your needs.
  4. Use variable combination:In规则值Part, you can use the variable placeholders mentioned earlier (such as{id}/{filename}/{catname}/{module}/{page}) to combine into a URL structure that meets your expectations.
    • For example, if you want the article URL to be域名/文章模型别名/自定义URL别名.htmlthenarchiveThe rule can be set toarchive===/{module}/{filename}.html.

Related articles

How can I optimize the URL structure of the AnQiCMS website to improve search engine friendliness?

During the operation of a website, a good URL structure, like a clear map, can not only help users intuitively understand the content of the page, but also guide search engines to more efficiently crawl and understand your website.AnQiCMS was designed with SEO needs in mind from the beginning, built-in powerful URL management functions, allowing us to easily create a search engine-friendly website structure.Understanding why search engine friendly URLs are important Before delving into the specific features of AnQiCMS, let's talk briefly about it

2025-11-08

How to display a list of all related articles under a specific Tag tag?

In Anqi CMS, tags (Tag) are an important tool for organizing content, enhancing user experience, and optimizing search engine performance.It can link articles from different categories but with related themes, making it easier for visitors to find content they are interested in.When you need to display a list of all associated articles under a specific Tag label, AnQi CMS provides a concise and powerful template tag to help you achieve this goal.### Understanding the Core: `tagDataList` tag To display the article list under a specific Tag, we mainly use the built-in functions of Anqi CMS.

2025-11-08

How to display all used Tag tags on the website or only display Tag tags related to the current article in AnQiCMS?

When building website content, tags play an important role. They can not only help you better organize information and improve the discoverability of content, but also optimize the user experience, making it easier for visitors to find the content they are interested in.For a content management system, flexibly displaying and managing these tags is one of its core values.AnQiCMS provides powerful functions in this aspect, allowing you to easily control the display of tags on your website according to your actual needs.### Add and manage Tag tags On AnQiCMS backend

2025-11-08

How to create and display single-page content such as “About Us” and “Contact Us”?

In website operation, single-page content like "About Us", "Contact Us", and the like are windows to showcase the corporate image, core values, or provide key information to visitors.They usually carry stable, independent and infrequent updated content, which is crucial for building trust and providing service access.AnQiCMS provides very convenient and powerful functions for managing and displaying these single-page applications, allowing you to easily create and customize them.### Part 1: Create Your Single Page Content Creating a single page in AnQiCMS is an intuitive and efficient process

2025-11-08

How to dynamically set the Title, Keywords, and Description (TDK) information for each page?

In website operation, each page's Title (title), Keywords (keywords), and Description (description) information, which we commonly call TDK, plays a vital role.They are not only the key for search engines to understand page content, but also important factors to attract users to click.In AnQiCMS, dynamically setting this information for each page is much more efficient and flexible than you might imagine.How to make TDK settings efficient and convenient in AnQiCMS

2025-11-08

Does AnQiCMS support generating and displaying canonical URLs (Canonical URL) to avoid duplicate content issues?

In website operation, duplicate content is undoubtedly a major challenge in Search Engine Optimization (SEO).Search engines tend to provide users with the most relevant and authoritative content. When they find the same or highly similar content under multiple URLs, they may feel confused, not knowing which version to index, which may scatter the ranking signals of the page and even affect the overall reputation of the website.For this issue, AnQiCMS provides a clear and practical solution, explicitly supporting the generation and display of canonical URLs.This means as a website operator

2025-11-08

How to embed Json-LD structured data in a page to enhance the rich media display of search engine results?

In today's highly competitive online environment, it is crucial to make your website content stand out in search engine results pages (SERP) to attract user clicks.And JSON-LD structured data is an important tool to achieve this goal.By embedding Json-LD in the page, you can provide clear information about the page content to search engines, thereby having the opportunity to display in search results in a richer form (such as star ratings, product prices, article thumbnails, etc.), which is what we commonly refer to as 'rich media results'

2025-11-08

How to configure AnQiCMS to automatically convert uploaded images to WebP format for optimized display performance?

The loading speed of a website is one of the key factors in user experience and search engine optimization, and images, as an important part of web content, often occupy most of the time it takes to load a page.Convert images to more efficient formats like WebP, which can significantly reduce the size of image files, thereby improving the display performance of websites.AnQiCMS as a content management system that focuses on performance and user experience, is built with the feature of automatically converting images to WebP format.This article will give a detailed introduction on how to configure this feature in AnQiCMS, making your website images automatically optimized during upload

2025-11-08