In website operation, a clear and meaningful URL structure not only helps search engines better understand and crawl your content, but also significantly improves the browsing experience of users.AnQiCMS knows this and therefore provides flexible and powerful features, allowing you to easily customize the URL structure of the article detail page.
Let's delve deeper into how AnQiCMS can help you achieve this goal and create more advantageous URLs for your website.
Why is it so important to customize URL structures?
Before delving into the features of AnQiCMS, we must first understand why URL structure is crucial for the success of a website. A well-designed URL can:
- Improve SEO performance:Search engines prefer concise URLs that include keywords, which helps them determine the relevance of page content and may result in better search rankings.
- Optimize user experience:Users can get a general idea of the page content through the URL, making it easier to remember and share links, and reducing access barriers.
- Enhance brand professionalism:Uniform and standardized URL structure can reflect the professionalism and brand consistency of a website.
AnQiCMS through providing pseudo-static configuration and fine-grained URL management features, makes these advantages within reach.
AnQiCMS' pseudo-static foundation and customization capabilities
AnQiCMS built-in powerful pseudo-static feature, which converts dynamic, parameterized URLs into static, more readable URLs, for example, convertingarticle.php?id=123Changes toarticle/123.html.This not only helps SEO, but also makes the URL look more friendly.System provides various preset rewrite rules such as numeric patterns, model naming patterns, category naming patterns, etc., which can meet the basic needs of most websites.
However, if you want to have more refined control over the URL of the article detail page, AnQiCMS's 'custom mode' is truly where it can fully exercise its flexibility.You can find the 'URL Rewrite Rule' setting under the 'Feature Management' menu in the background and switch to the custom mode.Here, you will be able to set exclusive URL rules for different types of pages (including article detail pages).
Precisely construct the URL structure of the article detail page
For the article detail page, AnQiCMS allows you to build personalized URLs by combining multiple preset variables. The key to building the rule is to understand and use the following core variables:
{id}:The unique ID of the article.{filename}:The custom link name of the article, usually automatically generated from the article title in pinyin, but can be manually modified.{catname}:The custom link name of the category to which the article belongs.{catid}:The ID of the category to which the article belongs.{module}:The table name of the content model to which the article belongs (e.g.,)article/product).{page}:The page number for pagination, usually enclosed in parentheses, indicating an optional item.
You can flexibly combine these variables according to your needs to define the URL rules for the article detail page. For example:
archive===/{module}/{filename}.html:This will generate such as/article/anqi-cms-url-customization.htmlSuch a URL, which includes the model name and the custom link name of the article, is clear and semantically meaningful.archive===/{catname}/{id}.htmlIf you pay more attention to the classification hierarchy and concise IDs, you can generate such as/news/123.htmlThe URL of.archive===/{catname}/{filename}.html:Combine the category and article name to make the URL more descriptive, such as/news/anqi-cms-latest-updates.html.
Be sure to be careful when configuring these rules. Incorrect rules may cause the page to be inaccessible.
Article-level URL personalization: Custom URL field
In addition to setting the overall URL structure through pseudo-static rules, AnQiCMS also provides the option of customizing the URL individually when publishing or editing each article.In the "Add Document" or "Edit Document
This field is for implementing{filename}the source of variable content. When you use it in pseudo-static rules,{filename}
It should be noted that the custom URL you enter must remain unique throughout the entire site.If the system detects a duplicate, it will automatically add numbers at the end to ensure its uniqueness.Additionally, in certain specific cases, if you want the link of a document to be permanently fixed and not change with the pseudo-static rules, you can also use the 'Fixed Link' field to set it, but this is a more advanced usage and should be handled with caution regarding its interaction with pseudo-static rules.
to build a complete semantic website structure
AnQiCMS's URL customization capability is not limited to the article detail page.In the "Document Classification" and "Document Tags{catname}Variable definition as/news/company-updates.htmlThe URL, define as for the label page/tags/seo-tips.htmlThe URL. By planning these URLs uniformly, your website will have a clear, hierarchical, and search engine friendly overall structure.
Important tips in practice.
- Pre-Planning:Before changing the URL structure, be sure to plan the overall URL system you want. Once changed, the old links may become invalid.
- Testing is crucial:Each time the pseudo-static rules are changed, all pages of the website should be thoroughly tested to ensure they can be accessed normally.
- 301 Redirect:If your website is already live and has an old URL structure, please make sure to set up 301 permanent redirection after the change, directing the old URL to the new URL to avoid SEO loss and interruption of user access.AnQiCMS also provides 301 redirect management function, convenient for you to configure.
AnQiCMS in the field of URL structure customization has powerful functions, which provide great flexibility for website operators, allowing you to better control the visibility and user experience of the website.By making good use of these features, your website will stand out to both search engines and users.
Common Questions and Answers (FAQ)
Q1: After modifying the URL structure of the article detail page, will the previous links become invalid?A1: Yes, if you directly modify the URL structure without any processing, the previous link will become invalid.This will cause a 404 error when users access old links, and may affect the inclusion of search engine results.To avoid this situation, AnQiCMS provides a 301 redirect management feature.You should redirect all the old URLs to the new URL with a 301 permanent redirect after changing the URL structure. This will tell search engines that the page has permanently moved and pass on the weight of the old links.
Q2: What is the difference between the 'Custom URL' field and the 'Fixed Link' field?A2: “Custom URL” field is mainly used for pseudo-static rules{filename}When variables are used, it provides a customized, more semantically meaningful article link name. It will be consistent with the pseudo-static rules you set (such as/{module}/{filename}.html)Combine to form the final URL. The "Fixed Link" field is a more powerful independent link setting, when you need the URL of a document to be completely independent of the pseudo-static rules, always keeping the relative path you enter in this field (for example/download) at English. In most cases, we prefer to use "custom URL" combined with pseudo-static rules to construct URLs.
Q3: Where can I check if I forget the syntax of the pseudo-static rules?A3: You do not need to worry. On the AnQiCMS backend's 'Function Management' -> 'URL Rewrite Rule' settings page, when you select 'Custom Mode', all available rule variables (such as{id}/{filename}/{catname}The) and its usage instructions, and some example rules for your reference.Additionally, the AnQiCMS help documentation also has a detailed section on 'Use Help for Static Rules', which you can refer to at any time.