In website operations, a clear, search engine-friendly URL address not only enhances user experience but is also a key element in website SEO optimization.Auto CMS (AutoCMS) understands this and therefore provides a flexible and versatile URL rewrite custom feature, helping users easily create SEO practice-compliant article page links.
Overview of the URL rewrite capability of Anqi CMS
The technique of pseudo-static pages, as the name implies, is to make dynamic pages look like static pages with fixed and meaningful URLs.This is very beneficial for search engine crawling and user memory.AnQi CMS, as a system focusing on enterprise-level content management, is built with powerful pseudo-static and 301 redirect management functions, aiming to help small and medium-sized enterprises and self-media operators effectively improve the SEO performance of their websites.
System default provides several convenient pseudo-static rules, such as number mode (using article ID as the URL basis), model naming mode (using content model alias as the URL prefix), and category naming mode (using category alias as the URL prefix).These preset rules can meet the basic needs of most websites.However, for users who pursue ultimate SEO optimization and personalized URL structures, Anqi CMS also provides a "custom mode", which allows us to finely adjust the URL structure of article pages according to specific needs.
Custom article page URL pseudo-static rule configuration process
To customize the pseudo-static rules of the article page, we need to enter the background management interface of the Anqi CMS for operation.
Enter the rule for pseudo-static settingsFirst, log in to the Anqi CMS backend, find and click on "Function Management" in the left navigation bar, and then select "Pseudo-static Rules".
Select the custom modeOn the rule management page of pseudo-static, you will see several pre-set rule options.To achieve more flexible customization, we need to select 'Custom Mode'.Selected, a text area allowing you to input a custom rule will expand below.
Understand the rule compositionThe custom pseudo-static rules of AnQi CMS are adopted
规则名===规则值. Among them,规则名rules for different types of pages are defined, while规则值determines the specific URL structure of the page type.The following rule names are the main ones we pay attention to for the article page and its associated list pages:
archiveis used to setDocument details page(i.e., the article page) URL structure.categoryis used to setCategory list pageThe URL structure, articles are usually attributed to a category.archiveIndexis used to setContent model home pageThe URL structure, for example, the homepage of the “article” model.tagis used to setTag detail pageThe URL structure, the article may be associated with multiple tags.
In
规则值We can use the following commonly used variables to build the URL:{id}: The numerical ID of the article or category, automatically generated by the system.{filename}: Custom URL alias for articles, single pages, or tags.{catname}The custom URL alias of the category.{catid}:分类的数字ID.{module}:Content model URL alias.{page}:Page number for pagination, usually used on list pages, should be placed in parentheses, such as(-{page}).
Example of pseudo-static rules for building article pages and related URLs
By combining these variables, we can create various URL structures that meet SEO requirements. The following are some common pseudo-static rules for article pages and their related page settings examples:
The most common article detail page structure:
/{module}/{filename}.htmlarchive===/{module}/{filename}.htmlThis rule is highly recommended, as it uses the alias of the article's model as the first-level directory, followed by the custom filename of the article, making the structure clear and easy for search engines to understand. For example, if a "Tutorial on Anqi CMS" article has the model alias as
article,Custom URL foranqicms-tutorial, its link will be/article/anqicms-tutorial.html.Article detail page structure based on category alias:
/{catname}/{filename}.htmlarchive===/{catname}/{filename}.htmlIf your website content hierarchy mainly depends on categories, you can use this rule. It uses the custom URL alias of the category to which the article belongs as a primary directory. For example, the category alias is
website-seo,article custom URL isurl-optimization,the link will be/website-seo/url-optimization.html.a concise article detail page structure (without model or category):
/{filename}.htmlarchive==={filename}.htmlthis rule URL is the shortest, but make sure
{filename}Uniqueness throughout the entire site, otherwise URL conflicts may occur. Suitable for websites with simple content hierarchy or those requiring extremely flat URLs.Rules for category list page:
/{module}/list-{catname}(-{page}).htmlcategory===/{module}/list-{catname}(-{page}).htmlThis will generate the URL for your category list page like
/article/list-anqicms-guide.htmlor/product/list-new-products-2.html(with pagination).Rules for tag list page:
/tag/{filename}(-{page}).htmltag===/tag/{filename}(-{page}).htmlThis will generate the URL for the tag page like
/tag/anqicms(-2).htmlThe URL of.Rules for model homepage:
/{module}.htmlarchiveIndex==={module}.htmlFor example, the home link of the article model may be
/article.html.
Please enter the value of the rule you selected into the corresponding position on the pseudo-static rule setting page. A complete custom pattern rule configuration may look like this:
archive===/{module}/{filename}.html category===/{module}/{catname}(-{page}) archiveIndex===/{module}.html page===/{filename}.html tagIndex===/tags(-{page}) tag===/tag/{filename}(-{page})Set
{filename}and{catname}In a custom URL,{filename}and{catname}Variables are the manually set key parts of the user.- Custom URL for the article (
{filename}):Under "Content Management" in the background, "Add Document"
- Custom URL for the article (