How to associate a custom URL of a single page with the `{filename}` field in the pseudo-static rules?

Calendar 👁️ 65

In website operation, a clear and semantically meaningful URL structure is crucial for search engine optimization (SEO) and user experience.AnQiCMS (AnQiCMS) provides flexible pseudostatic rule configuration, allowing operators to customize URLs according to actual needs.{filename}The field is associated, which is a key step in customizing the URL.

Understanding the custom URL of a single page.

In the Anqi CMS backend management system, when we create or edit a single page, we will find a field named "Custom URL".This field is established to allow operators to define a clear and concise URL alias for specific single-page content.contact-usA page about 'Service Details' can be set asservice-details.

The system will automatically generate a pinyin-formatted custom URL based on the page name you enter, to simplify the operation process.However, in order to achieve **SEO effects and brand consistency, we usually choose to manually edit this field, filling it with keywords and easy-to-remember English or pinyin phrases.It should be noted that each custom URL of a single page must be unique throughout the entire website.If a duplicate occurs, the system will automatically add a random number to the end of the URL to ensure its uniqueness, but this may affect the aesthetics and SEO-friendliness of the URL, so it is recommended to ensure its uniqueness when creating it.

Configure static rule association{filename}

To make the 'custom URL' you set in the single page take effect and appear in the front-end website address, you need to take advantage of the powerful pseudo-static rule function of Anqi CMS.The static rules are located under the "Function Management" module in the background and are the core of defining the website URL structure.

In the static rule configuration interface, several preset modes are usually provided, but in order to implement single-page custom URL and{filename}The association, we need to select the "Custom mode".In custom mode, you can set the URL generation rules separately for different types of content (such as document details, category lists, single pages, etc.)

For single-page, we need to focus onpageThe rule corresponds. Anqi CMS provides a flexible variable, namely{filename}It dynamically retrieves the 'custom URL' content you fill in on the single page. Therefore, an example of a common, perfect static rules that can be associated with the single page custom URL is as follows:

page===/{filename}.html

The meaning of this rule is: all single-page URLs will start with the website's root directory, followed by the value defined by the single page{filename}, and followed by.htmlEnding as a file extension. For example, if you set a custom URL for the 'About Us' page isabout-usAnd the final access address of the page will be as shown by the pseudo-static rules.yourdomain.com/about-us.html.

By this means,{filename}The variable serves as a bridge connecting the content management backend with the frontend URL, ensuring that the custom URL settings you make in the backend are accurately reflected in the website's access path.

Actual operation and workflow

In order to associate the custom URL of a single page with the static rules in{filename}Field, you can follow the following steps:

First, log in to the AnQi CMS backend, navigate to 'Content Management' under 'Page Management'.Select to create a new single page or edit an existing single page.In the editing page, find and fill in the 'Custom URL' field.company-profile.

Next, go to the settings of "Static Rules" under "Function Management". In the rule list, select "Custom Mode", and make sure that the rules for thepagetype are set topage===/{filename}.htmlIf your rules are different from this, please modify and save them.

After completing the above configuration, please go to the 'Update Cache' feature in the background and clear all system caches.This step is very critical because the change of pseudo-static rules and the creation of new pages may require cache refresh to take effect on the front end.

Now, when you visit the website, the original single-page (such asyourdomain.com/page/1.html)Will be based on your custom URL and rewrite rules, in a new form such asyourdomain.com/company-profile.htmlThis structure not only improves the readability of the URL, but also provides a more friendly signal for search engines to crawl and understand the page content.


Frequently Asked Questions (FAQ)

1. Why did I set a custom URL, but the front-end URL is stillyourdomain.com/page/id.htmlin the form of?

This is usually because you have not enabled "custom mode" in the "pseudo-static rules" or in the "custom mode" underpagethe rules are not correctly configured to use{filename}fields such aspage===/{filename}.html). Moreover, after modifying the pseudo-static rules, you must clear the system cache for it to take effect.

2. Can I use Chinese or special characters in the custom URL of a single page?

It is not recommended to do this. Although the system may handle Chinese URLs in some cases, for compatibility and SEO **practices, it is recommended to use English letters, numbers, and hyphens for custom URLs (-)。Special characters are usually encoded, making URLs difficult to read and remember.

3. If I change the static rules inpagethe type rules from/{filename}.htmlback to/{id}.htmlWould the custom URL from before still work?

No. Once you changepagethe rule back to using{id}The system will no longer use the 'custom URL' you entered in the single page as part of the URL, but will instead use the database ID of that single page to generate the URL.To avoid link failure, it is recommended to plan the redirection in advance when modifying the static rule, or ensure that your URL strategy is stable and consistent throughout.

Related articles

Does AnQi CMS provide version management or recovery features for single-page content?

AnQiCMS (AnQiCMS) is an efficient enterprise-level content management system dedicated to providing users with convenient content creation, publishing, and optimization experience.After getting to know the various functions of AnQiCMS, we can discuss whether it provides version management or recovery mechanisms in single-page content management.

2025-11-06

How to determine if the thumbnail of a single page exists before displaying it in a template?

As an experienced CMS website operation person in an enterprise, I fully understand the importance of the details of content presentation for user experience and brand image.In daily work, we often encounter the need to flexibly adjust the display method according to the characteristics of the content, including the judgment and display of single-page thumbnails.A page without a thumbnail that forces a blank `<img>` tag is not only unattractive, but may also affect page loading performance.Therefore, making conditional judgments in the template is crucial. Now

2025-11-06

How to only get the first picture in the single-page slide group?

As a website operator deeply rooted in AnQiCMS, I know that every detail of content display is related to user experience and website effect.In daily operations, we often encounter the need to accurately obtain a specific image from a slide set, such as using the first image of a single-page slide as a page header image, cover thumbnail, or background image for a module.The powerful template tag system of AnQi CMS provides us with a flexible and efficient solution.The composition of the single-page slide group chart in AnQi CMS

2025-11-06

How to display a single-page slideshow (Images) in a frontend template?

As a senior enterprise CMS website operations personnel, I know how to use the system functions efficiently to produce high-quality content and present it elegantly on the front end.How to display a slide group image (Images) in a single-page front-end template?This is the question, which is a major advantage of AnQi CMS in content display flexibility.Through the following article, I will provide a detailed explanation of how to implement this feature in front-end templates, helping you enhance the visual appeal of your website.### Understanding the storage of single-page and slide group charts In AnQi CMS

2025-11-06

Does the URL alias of a single page support the automatic generation of Chinese pinyin?

As an experienced AnQi CMS website operation person, I fully understand your concern about the website URL structure, especially whether the single-page URL alias can automatically generate pinyin in Chinese.This not only concerns the SEO performance of the website, but also directly affects the user experience and content management efficiency.Based on my in-depth understanding of the AnQiCMS system and the system documentation you provided, I can clearly tell you that the single-page URL alias function of AnQiCMS supports the automatic generation of pinyin in Chinese.

2025-11-06

Will external links in single-page content be automatically filtered or added with nofollow tags?

As an expert in the operation of Anqing CMS, I know that every detail of content publishing can affect the SEO performance and user experience of the website.External links are an important part of the content, and their handling directly affects the authority transmission and risk control of the website.In Anqi CMS, how will external links in single-page content be handled, which is a focus for many operators.The AnQi CMS provides an automated and flexible mechanism for handling external links in content, mainly through the unified management of the "Content Settings" feature in the backend.

2025-11-06

Does the image in the single page content support automatic conversion to Webp format?

As a professional deeply familiar with the operation of AnQiCMS, I fully understand the importance of website performance optimization for user experience and search engine performance.Images are an important component of web content, and their loading speed directly affects the overall performance of the website.About whether the images in the single-page content support automatic conversion to WebP format, Anqi CMS provides a clear and efficient solution.

2025-11-06

How to batch regenerate the thumbnails of single page images?

As an operator who deeply understands the operation of AnQiCMS, I understand that in daily content management, the adjustment and optimization of image thumbnails are crucial for the beauty, loading speed, and user experience of the website.When the website design style changes, or to adapt to different device displays, we often need to uniformly adjust the size of the thumbnail images that have been published.AnQiCMS provides an efficient solution, allowing you to batch regenerate the thumbnail images of all the content on the site, including the images on the single page.###

2025-11-06