The pseudo-static rule management function can implement a customized URL rule display solution to achieve the advantageous effects similar to static pages, while ensuring the need for real-time content updates. It helps to personalize links, enhance search engine friendly (SEO), URL aesthetics and other effects.
Anqi CMS combines commonly used website URL rules and provides four pseudo-static rules and solutions by default, which provide convenient direct selection pseudo-static solutions for domestic website building and foreign trade websites. Users can also use custom advanced modes to achieve more free custom URL rules to meet the requirements of more flexible and personalized URL rules.
Solution 1: Digital Mode
Solution 1 is a minimalist URL rule, displayed by ID, the URL length is short and domestic websites are mostly used.
Document details: /{module}/{id}.html
Document list: /{module}/{catid}(/{page})
Model homepage: /{module}
Single page details: /{id}.html
Tag list: /tags(/{page})
Tag details: /tag/{id}(/{page})
Solution 2: Naming Mode 1
The naming mode of solution 2 is suitable for using different directories according to articles of different models. The pinyin of the title will be used as the URL by default. Domestic sites and foreign trade sites are used more frequently.
Document details: /{module}/{filename}.html
Document list: /{module}/{catname}(/{page})
Model homepage: /{module}
Single page details: /{filename}.html
Tag list: /tags(/{page})
Tag details: /tag/{filename}(/{page})
Solution 3: Naming Mode 2
Solution 3 combines naming mode and digital mode, which is more common in domestic websites.
Document details: /{catname}/{id}.html
Document list: /{catname}(/{page})
Model homepage: /{module}
Single page details: /{filename}.html
Tag list: /tags(/{page})
Tag details: /tag/{id}(/{page})
Solution 4: Naming Mode 3
Based on the naming mode of Plan 2, Scheme 4 has been changed to display different URL directories according to different categories, and the articles are classified by classification. More common in foreign trade websites.
Document details: /{catname}/{filename}.html
Document list: /{catname}(/{page})
Model homepage: /{module}
Single page details: /{filename}.html
Tag list: /tags(/{page})
Tag details: /tag/{filename}(/{page})
Solution 5: Custom mode (Advanced mode)
Solution 5 is an advanced mode, and you need to use Solution 5 with caution. If the settings are not properly set, the front-end page will not be opened.
Custom pseudo-static rule description
Custom Rules Currently, you can freely set up URL rules for 6 link types, namely document details, document list, model homepage, page, tag list, and tag details. === and the previous part cannot be modified. like:
archive===/{module}-{id}.html
category===/{module}-{filename}(-{page})
archiveIndex===/{module}.html
page===/{filename}.html
tagIndex===/tags(-{page})
tag===/tag-{id}(-{page})
Custom pseudostatic rule variables
Scheme 5 custom rules support several built-in variables freely. Variables are wrapped in curly braces{}
,like{id}
.
Available variables are:
- Data ID
{id}
; - Document custom link name
{filename}
; - Classified custom link name
{catname}
; - Multi-level classification custom link name
{multicatname}
,{multicatname}
and{catname}
Only one can be used; - Classification ID
{catid}
; - Model table name
{module}
; - Year
{year}
, moon{month}
, day{day}
, hour{hour}
, point{minute}
, Second{second}
, only documents (archive) are available; - Pagination page number
{page}
, the page should be placed in brackets, such as:(/{page})
.