In website operations, generating SEO-friendly URLs for content is a key step in improving website SEO performance.An clear and keyword-rich URL not only allows users to understand the page content at a glance, but also helps search engines better understand and crawl web pages.{filename}and{catname}The variable, for generating highly customized URLs for articles, categories, and even single pages.
Optimize URLs, starting with understanding pseudo-statics.
The so-called pseudo-static, as the name implies, is to 'disguise' dynamic URLs into the form of static HTML pages by server rules.The benefits of doing so are obvious: search engines prefer simple, stable and unchanging static URLs, which helps them index website content more effectively and may improve the page ranking.Users are also more inclined to click on URLs that are easy to read and contain meaningful keywords.The auto CMS is built-in with various pseudo-static rule modes, ranging from simple number patterns to more SEO-valuable model naming and classification naming patterns.However, if you want to maximize the customization and SEO-friendliness of the URL, custom mode is undoubtedly the best choice.
Core variables:{filename}With{catname}uses
In the custom rewrite rules of AnQi CMS,{filename}and{catname}they are two very important variables that give us the ability to inject keywords into URLs:
{filename}This variable represents the 'custom URL' for articles, single pages, or tags.When you edit articles, create single pages, or manage tags, you will find a "Custom URL" field.By default, the system will automatically generate a pinyin-based URL based on the title, for example, "安企CMS教程" may be automatically generated as "anqicms-jiaocheng".Of course, you can manually modify it according to your actual needs to include more targeted keywords.It is important to note that this custom URL must be unique throughout the entire site. If a duplicate exists, the system will automatically add numbers at the end to ensure its uniqueness.{catname}This variable is specifically used for the classification page, representing the 'custom URL' of the classification.When you add or edit a category, there will also be a "Custom URL" setting option.{filename}Similar, aiming to let the URL of the category page directly reflect its content theme.
The cleverness of these variables lies in their ability to directly reflect the meaningful keywords you set in the background for specific content (articles, categories, etc.) in the URL structure, greatly enhancing the readability and SEO value of the URL.
Step by step configure custom pseudo-static rules
To make good use of these two variables, we need to go to the "Function Management" menu of the Anqi CMS backend and find the "URL Rewrite Rule" option.Here, you can choose “Custom Mode”.
In custom mode, we can configure six groups of rules, each corresponding to a different type of page: document details (archive)、document list (category)、Model Home Page(archiveIndex), single page (page), tag list (tagIndex)and tag details(tag)。Each rule follows规则名===规则值format.
Here are some examples of using{filename}and{catname}variables to create SEO-friendly URLs:
Article details page (
archive): Typically, we want the article URL to include the name of its category and the keywords of the article. You can set it like this:archive===/{catname}/{filename}.htmlSo, your article URL may be:/wangzhan-yunying/anqicms-jiaocheng.html,clear and includes keywords.Category list page (
category): The URL of the category page can only contain the custom name of the category itself. You can set it like this:category===/{catname}(-{page}).htmlHere are the(-{page})Is an optional pagination variable, when the list has multiple pages, it will automatically generate such/wangzhan-yunying-2.htmlPagination URL. The URL for a single category page will be/wangzhan-yunying.html.Single page detail page (
page)For pages like "About Us" and "Contact Us", you can directly use their custom URL aliases. You can set it up like this:page===/{filename}.htmlSo, your single-page URL will be/about-us.htmlor/contact-us.html.Tag detail page (
tag): You can also use the custom name of the tab directly as the URL of the tab. You can set it like this:tag===/tags/{filename}(-{page}).htmlThis is a tab URL for a page about "SEO optimization"/tags/seo-youhua.html.
Configure these rules and then save the changes, your website will start using these new URL structures.But please remember that it is not enough to configure the rules; you also need to fill in meaningful keywords in the "Custom URL" field when creating or editing content.
Custom URL for managing content
In the Anqi CMS backend content editing interface, whether it is articles or products under "Publish Documents
Article/Product/Tag/Single PageIn their edit pages, find the "Custom URL" field.The system will automatically generate pinyin based on the title, but for maximum SEO effect, it is recommended that you manually modify it according to the core keywords of the page content, keeping it concise, relevant, and connected by hyphens (-).
anqicms-rewrite-config.CategoryIn the "Document Classification
website-operation.
Ensure that these custom URLs are unique. Although the system will automatically handle duplicates, manually maintaining their uniqueness and semanticization is more beneficial for SEO.
**Practical Tips and Considerations
- Simple and clear:The shorter the URL, the better, while it should accurately convey the content of the page.
- Include keywords:Incorporating core keywords appropriately into the URL without keyword stuffing can help improve relevance.
- Use a hyphen (-)Use a hyphen (-) instead of an underscore (_)" to separate words in a URL, which is recommended by search engines.
- Maintain consistencyOnce the URL structure is determined, do not change it frequently, otherwise it may affect the inclusion and ranking of search engines.
- Use 301 redirect.:If indeed it is necessary to change the URL structure of the pages that have already been indexed, the 301 redirect management feature provided by Anqi CMS is particularly important.It can transfer the weight of the old URL to the new URL, minimizing SEO loss as much as possible.
By using the above method, you can fully utilize the pseudo-static function of the Anqi CMS, to build a set of URLs that are both beautiful and SEO-friendly for your website, thereby gaining an advantage in the fierce online competition.
Common Questions (FAQ)
问:Is the 'Custom URL' field of AnQi CMS supported in Chinese? What will happen if I enter Chinese?答:The 'Custom URL' field of Anqi CMS can accept Chinese input, but in order to generate URLs that are more friendly to search engines, the system usually converts them automatically to the corresponding pinyin form (for example, 'Anqi CMS' will become 'anqicms').If you want to include specific English keywords in the URL instead of pinyin, it is recommended that you enter English and hyphens manually, which can better control the SEO effect of the URL.
问:I have modified the pseudo-static rules, but some old URL links still exist on the website. Can they still be accessed? Will this affect SEO?
问:If I do not fill in the 'Custom URL' field when editing articles or categories, how will the system handle it?答:If you have not manually set the 'Custom URL' field, Anqi CMS will automatically generate the corresponding pinyin as the URL alias based on the content title.If the generated pinyin is duplicated with other content's URL, the system will automatically add a series of numbers at the end of the URL to ensure its uniqueness.Although this automatic generation method can ensure the availability of the URL, it is still recommended to manually edit the custom URL for better SEO effects and readability, making it contain core keywords and remain concise.