As an experienced AnQi CMS website operations manager, I know that a clear and easy-to-understand URL structure is crucial for the website's search engine optimization (SEO) and user experience. AnQi CMS provides powerful static page functionality, allowing us to flexibly customize URL paths according to our needs, which is important for single-page (pageThe optimization is particularly important.

Understanding the pseudo-static URL in Anqi CMS.

Static URL, as the name implies, looks like a static HTML file, but the actual content is dynamically generated by the backend.Compared to dynamic URLs that contain question marks and complex parameters, static URLs are more readable and easier for search engines to crawl and understand.In Anqi CMS, the system comes with multiple built-in static rules and allows for high-level customization to meet specific SEO strategies or brand needs.

For a single-page, such as "About Us", "Contact Us", or "Terms of Service", etc., we usually hope that their URLs are concise and clear, reflecting the content of the page directly, rather than a string of irregular numbers or system internal identifiers. A good single-page URL, such ashttps://www.yourdomain.com/about-us.htmlIt not only helps users remember and share, but also clearly conveys the page theme to search engines.

Enable single-page custom static URL path.

To set up a custom static URL path for a single page in AnQi CMS, we need to complete two core steps: first, define the URL structure of the single page in the global static rule, and then specify the unique URL alias for each specific single page.

First, please log in to the Anqi CMS backend management interface.In the left navigation menu, find and click the "Feature Management" under the "Static Rule" option.This is the core area where you manage the URL structure of your website.

After entering the "Static Rules" page, you will see several built-in rules provided by Anq CMS, such as "Number Pattern", "Model Naming Pattern", and so on.These preset patterns can quickly apply common URL structures.However, in order to achieve complete customization of a single page, we need to select 'Custom Mode'.Click to switch to "Custom mode" and you will see a text box that lists multiple rules, each corresponding to different types of pages such as document details, document lists, model home pages, etc.

Please find the rule related to the single page, its format is usuallypage===/{filename}.html. This rule is the key to defining the single page URL structure.{filename}A placeholder that will be replaced by each single page's unique URL alias in the actual URL.

You can modify this rule according to your needs. For example, if you want the URL of a single page to be direct is域名/文件名.htmlthen in the form ofpage===/{filename}.htmlThis rule has already been applied. If you want the single-page URL to include a parent directory, for example域名/company/文件名.html, you can change it topage===/company/{filename}.html.

When customizing rules, you can flexibly use the variables provided by the system. In addition,{filename}the commonly used variables include{id}(The ID of a single-page). But usually, for single-page applications that want to build friendly URLs with custom names,{filename}It is the most commonly used and recommended option. Please ensure that the modified rules comply with the URL naming conventions and are easy to understand and manage.

After modifying the static rule, please click the save button to ensure that your global settings take effect.

Configure a single page's custom URL

After defining the global single-page pseudo-static rules, the next step is to set the custom URL paths for each specific single page.

Please click on the 'Page Resources' option under the admin menu. Here, you can view and manage all single pages on your website.

Whether you are creating a new single page or editing an existing single page, you will find a field named 'Custom URL' in the page editing interface.This field is used to specify the alias that the current single page will use in the URL.

By default, Anqi CMS will automatically generate a custom URL based on the拼音 of the single page name you enter.For example, if the page name is “About Us”, the system may automatically generate “guanyu-women”.This auto-generated value is editable, you can modify it according to your brand requirements or SEO strategy.For example, you can change it to “about-us” or “our-story”.

It should be noted that the value you enter in the "Custom URL" field must be unique throughout the entire website.If there is a duplicate, the system will automatically add a random number at the end to ensure its uniqueness.A concise, meaningful, and unique custom URL will be the "facade" of this single page in front of search engines and users.

After completing the editing of the single-page content and setting the custom URL, please click the save button on the page.At this time, your single page will generate a new static URL according to the structure you define in the global pseudo-static rules, combined with the alias you enter in the "Custom URL".For example, if the global rule ispage===/{filename}.htmlAnd you set the custom URL of a page to 'about-us', then the final access path of that page will behttps://www.yourdomain.com/about-us.html.

Important practical advice

When setting up and managing single-page pseudo-static URLs, there are some important practice suggestions worth noting.

First, the uniqueness of the URL is crucial. Ensure that each page's URL is unique to avoid content duplication or confusion to search engine crawling.Secondly, once the URL is set and launched, it should be avoided to change it arbitrarily.Frequent URL changes can lead to search engine indexing issues and may affect users' bookmarks and external links.If indeed a change is needed, it is imperative to use the 301 redirect function provided by Anqicms to permanently redirect the old URL to the new URL to retain the original SEO weight.

In addition, it is recommended that you use lowercase letters when setting a custom URL, and separate words with hyphens, avoiding special characters or spaces.This format is the most friendly to search engines and also conforms to international standards for URL structure.

By following these steps and suggestions, you can fully utilize the pseudo-static function of Anqin CMS to create clear, search engine friendly, and easy-to-manage URL paths for your single-page, thereby enhancing the overall SEO performance and user experience of the website.


Frequently Asked Questions (FAQ)

1. Why is the custom static URL still a dynamic URL or showing a 404 error when accessed on the front end?

This is usually caused by several reasons. First, please confirm whether you have set the single-page rule to 'custom mode' and correctly modified it in 'Function Management' -> 'URL Rewrite Rule'.page===The rules, and clicked save. Next, when editing a specific single page, did you enter content in the "Custom URL" field and save?If all these have been confirmed correctly, it may be that the Nginx or Apache configuration on the server has not been properly synchronized, causing the pseudo-static rules to not take effect.Also, try clearing your browser cache, sometimes browsers cache old URLs or page states.If the problem still exists, it is recommended to check the server's web server (Nginx/Apache) configuration to ensure that it correctly forwards requests for pseudo-static URLs to the AnQiCMS backend.

2. Does Anqin CMS support setting Chinese aliases for single-page URLs?

Although AnQi CMS allows you to enter Chinese in the "Custom URL" field, from the perspective of SEO and URL standards, it is strongly recommended to use English or pinyin aliases.When you enter the Chinese page name, the system will automatically generate the corresponding pinyin as the default "custom URL".Using English or pinyin aliases can avoid URL encoding issues, improve the readability and compatibility of URLs, and also benefit search engine crawling and ranking.If you enter Chinese, the system may automatically encode it, resulting in a long and unreadable URL.

3. What impact will it have on the website if I change the custom URL of a single-page that has been live for a long time? How can I minimize these impacts?

Changing the URL of a page that has already been launched will have an immediate impact on the website, mainly including a drop in search engine rankings (because the old URL is invalid, search engines need time to re-crawl the new URL), interruption of user access (if users have favorited the old URL or external websites link to the old URL), and loss of the original SEO weight.To minimize these effects, the most critical step is to immediately set up a 301 permanent redirect.In Anqi CMS, there is usually a "301 Redirect Management" feature, where you need to redirect the old URL accurately to a new custom URL.This will inform the search engine that the page has been permanently migrated, and the SEO weight of the old URL will be passed on to the new URL.At the same time, it is recommended to submit a new Sitemap to Google Search Console or Baidu Webmaster Tools and request re-crawling of the affected pages.