The static page function of AnQi CMS is not only for beautifying URLs, but also a key factor in improving the website's performance in search engines.A well-optimized URL structure can help search engines better understand the content of the page and also enhance the trust and convenience of users for the website.Especially for category list pages, the URL usually carries hierarchical information about the website's content structure, which is an important path for users and search engines to explore the website.
Understand the pseudo-static mechanism of AnQi CMS
AnQi CMS provides powerful pseudo-static rule management features.The system is built with several preset modes, such as number mode, model naming mode, and two classification naming modes, which are enough to meet the basic needs of most websites.However, for advanced operators who pursue the ultimate SEO effect and personalized URL structure, the custom mode is the stage to unleash their advantages.By customizing the pattern, we can accurately control the display form of the URL for various types of pages on the website.
When customizing pseudo-static rules, we need to pay attention to six main page types: document detail page (archive), category list page (category), model home page (archiveIndex)、Single page(page)、Label Home(tagIndex)and Label Detail Page(tag)。We mainly configure for the Category List Page,“categoryrules.
Writing Skills for Category List Page Static Rules
Write custom static rules for the category list page of Anqi CMS, the key is to use the system variables to combine URLs that are semantic and structured. The key is to understand and use them flexibly.{module}/{catname}/{catid}and{page}These variables.
first, {module}Variables represent the table name or URL alias of the content model. For example, if your website has two content models, 'article' and 'product', they may correspond to the{module}Value isarticleandproduct. Including the model name in the URL helps to clarify the ownership of the content.
secondly,{catname}and{catid}It is the most core variable on the category list page.{catname}It refers to the custom URL alias of the category, which is usually the pinyin or English abbreviation of the category name, and has strong semantics. For example, a category named "News Center" has{catname}May be set asnewsHowever{catid}It is the unique ID of the category. When choosing to use{catname}Or{catid}it is necessary to weigh the semantic and URL conciseness. Usually, we tend to use{catname}to enhance readability and SEO value, but{catid}To ensure the uniqueness of the URL more determinately. In category management, you can set a custom URL for each category, which directly affects{catname}the value.
Finally, pagination page number{page}It is crucial for the list page. The pagination number must be placed inside parentheses in the pseudo-static rules, for example(-{page})This way, the system can correctly identify and process pagination links. This method ensures that pagination links also have good readability and avoid appearing?page=2such dynamic parameters.
For example, a typical static rule for a category list page can be set as:category===/{module}/{catname}(-{page}).htmlThis will generate something similar:/article/news/page-2.htmlor/product/shoes.htmlThe URL structure. This structure clearly shows the hierarchical relationship of "model/class name/page number", which is very friendly to search engines and users.
Considerations and practices for designing static rules
There are some points to pay special attention to when designing static rules for category list pages.
The SEO friendliness of the rules is the first one.An ideal URL should be short and concise, contain core keywords, and be easy to understand.Avoid using overly long URLs, meaningless numbers, or too many levels of nesting.When customizing the URL alias, it should be selected to be highly relevant to the category content and maintain consistency.
The second is a consideration for user experience.A clear URL structure helps users better understand the location of the current page on the website, improving the navigability and predictability of the site.When a user sees a structured URL, they can more easily guess the URLs of other related pages, thereby improving the stickiness of the website.
Three is to avoid rule conflicts and redundancy.When setting multiple custom rules, make sure that rules for different page types do not cause ambiguity or conflicts, otherwise it may lead to inaccessible pages or incorrect content display.Once the static rules are enabled, they should be kept stable to avoid frequent modifications, as this may cause search engines to re-crawl and index, which may affect the website's ranking in the short term.If indeed it is necessary to modify, it is imperative to cooperate with the Anqi CMS 301 redirect management feature, to permanently redirect the old URL to the new URL to retain historical traffic and SEO weight.
Four is a thorough test that is indispensable step.After configuring the custom static rules in the background, it is imperative to conduct a comprehensive test of the website.Check if the URLs on each category list page are generated as expected, whether the pagination links jump normally, and whether there are any 404 errors.By actual visit and verification, ensure that the new rules can run stably.
In the AnQi CMS backend, go to the 'Function Management' module, find the 'SEO rule' option, select 'Custom Mode' to start the configuration.Here, you can enter and manage your custom rules directly.By carefully designed pseudo-static rules, the classified list page will appear clearer and more professional to users and search engines, bringing sustained traffic and higher conversion rates to the website.
Frequently Asked Questions
Why does the custom URL I set for the category still display the ID when accessed on the front end?Answer: This is usually because the pseudo-static rules currently used on your website are not configured to use{catname}or{filename}Variable. Please check the "Function Management" -> "Static Rules" setting in the Anqi CMS backend, make sure your category list page (category) rules include{catname}or{filename}for example:category===/{module}/{catname}(-{page}).html), and save it生效. Only when the pseudo-static rules explicitly specify the use of these variables, the system will read the custom URL alias of the category.
Ask: After modifying the pseudo-static rules on the category list page, what additional operations do I need to perform to avoid negative impacts on SEO?Answer: The most critical operation after modifying the pseudo-static rules is to configure the 301 permanent redirect.You need to permanently redirect all old category list page URLs to the new URL structure.The AnQi CMS provides 301 redirect management functionality, you can find and configure these redirect rules in the "Feature Management".In addition, submit the updated website Sitemap to search engines, and take advantage of the link push feature of the security CMS to actively inform search engines that your URL structure has changed, which helps search engines update their indexes faster and minimizes SEO impact as much as possible.
What: My category list page has duplicate content or 404 errors when paginating, how should I investigate?Answer: Pagination issues may arise from the pseudo-static rules on{page}The variable is used incorrectly or is missing. Please check yourcategoryrules to ensure they include(-{page})this part, making sure the format is completely matched. For example,category===/{module}/{catname}(-{page}).html. Also, make sure your template file (for example,article/list.htmlorproduct/list.html)was used correctlypaginationTags to generate pagination links.If pagination issues still exist, check the Nginx or Apache configuration on the server to ensure that the pseudo-static rules are correctly parsed for pagination parameters at the server level.