As website operators, we all hope that the URL of the website is both convenient for search engines to crawl and clear for users to understand at a glance, and even able to understand the content of the page directly from the link.An clear and meaningful URL can enhance the user experience and is an indispensable part of Search Engine Optimization (SEO).The Auto CMS knows this and therefore provides a powerful and flexible pseudo-static rule configuration feature, allowing us to create diverse content link display modes according to our needs.
Why is pseudo-static so important?
Imagine two links:www.yourdomain.com/view.php?id=123&cat=456andwww.yourdomain.com/articles/seo-guide-2023.html.
It is self-evident that the latter is not only more readable but also easier for users to remember and share.For search engines, static or pseudo-static URLs are also easier to understand the page topic, which helps in keyword ranking.The pseudo-static technology can rewrite dynamic webpage addresses into URLs that look like static pages through server rules, without actually generating static files, balancing the convenience of managing dynamic content and the SEO advantages of static URLs.
The pseudo-static capability of Anqi CMS: Basics and Advanced
The pseudo-static feature of Anqi CMS is designed very humanly, whether you are a beginner or an experienced hand with advanced customization needs, you can find a configuration method that suits you.
Quick Start: Built-in Rules
For websites that are new to pseudo-static or want to go live quickly, the four built-in pseudo-static rules of Anqi CMS provide great convenience. You do not need to manually write complex rules; simply select them in the background to apply:
- Number PatternThis pattern of URL usually contains the content ID, for example
/article/123.html. It is simple and intuitive, suitable for websites where ID is the main identifier. - Model naming pattern:URL中会包含模型别名和内容的自定义链接名,例如English
/news/latest-tech-trends.html。这有助于用户和搜索引擎理解内容所属的模型(如“新闻”)以及具体内容。 - Category Naming Pattern 1:The URL will include the category ID and the content ID or page number, for example
/category/5/page-2.html. This pattern is very useful when it is necessary to emphasize the category hierarchy. - Classification naming pattern 2:URL will use category custom link name and content custom link name, for example
/solutions/marketing-strategy-guide.html. This makes the URL more semantically meaningful, fully reflecting the category and theme of the content.
These built-in patterns cover most common needs, just need to be in the backgroundFunction Management-Static rulesSelect and save in it, and you can see the effect immediately.
Deeply customize your URL: Custom rules
If you have more refined and personalized requirements for URL structure, Anqi CMS provides powerful custom rewrite rules.This allows you to customize unique URL patterns for different content types on the website (documents, categories, single pages, tags, etc.)
The configuration format of the custom rule is very clear, each rule is composed ofRule name===Rule value. Currently, Safe CMS supports defining rules for the following six types of content:
- archive:Document Details Page
- category:Category List Page
- archiveIndex:Model Home Page (e.g., list page of all articles)
- page:Single Page Detail Page
- tagIndex:List Page of All Tags
- tagEnglish: Specific tag document list page
When defining rule values, you can flexibly use various variables to construct URLs:
- {id}The unique ID of the content.
- {filename}:Content (document, single page, tag) custom link alias.This alias needs to be manually set when editing content, usually the pinyin or English abbreviation of the content, and it should be unique throughout the entire site.
- {catname}:分类的自定义链接别名。同样需要在编辑分类时设置,且保持唯一。
- {catid}: ID of the category.
- {module}The URL alias for the content model (such as article, product).
- (-{page}):Used for pagination. This variable needs to be enclosed in parentheses
()to indicate that it should only be displayed when pagination exists.
Let us understand through several examples how these variables combine to create diverse URLs:
Document details page (
archive)- If you want the article URL to display as
/articles/文档ID.html:archive===/articles/{id}.html - If you want the URL to be more descriptive, for example
/article/seo-optimization-tips.html:archive===/{module}/{filename}.html - Even it can be combined with category alias:
/news/industry-insights/market-analysis.html:archive===/{catname}/{filename}.html(Please note that if the category hierarchy is deep, this pattern needs to ensure that each level){catname}has been set correctly and does not conflict.)
- If you want the article URL to display as
Category list page (
category)- Display with category ID:
/products/category-15.html:category===/{module}/category-{catid}.html - Display by category alias, and supports pagination:
/solutions/digital-marketing/page-2.html:category===/{catname}(-{page}).htmlHere are the(-{page})Indicates, if it is the first page, the URL does not contain:/page-1If it is the second page, it shows:/page-2.
- Display with category ID:
Single Page (
page)- For single-page pages like “About Us”:
/about-us.html:page===/about-us.htmlor use a custom link alias:page===/{filename}.html
- For single-page pages like “About Us”:
Tab (
tag)- Display by tag ID:
/tag/tag-10.html:tag===/tag-{id}.html - Display by custom link name of tag:
/tag/seo-keywords.html:tag===/tag/{filename}.html
- Display by tag ID:
These custom rules are also in the backgroundFunction Management-Static rulesSet during, select "Custom mode" and you can fill in your exclusive rules in the text box.{filename}and{catname}Make sure toDocument editing/Category editingor **Tags**