Static Rule Help

The static rule allows you to define the composition form of the website URL according to actual needs.

For the convenience of users, to reduce the trouble of configuration, the system is built-in with 4 ready-made pseudo-static rules that can be used directly after selection.

plugin-rewrite-1

The default pseudo-static rules are:

  1. In digital mode, the document details, document list, single page details, document tags, all use {id} as the basis for URL generation, and are usually used more on Chinese sites.
  2. Model naming pattern model naming pattern, generally used for English websites
  3. Category naming pattern 1 category naming pattern 1, generally used for Chinese websites
  4. Category naming pattern 2 category naming pattern 1, generally used more for English websites

To allow you to customize the link display form of the website content, the system also provides a custom mode.

The custom mode belongs to the advanced mode, it is necessary to configure it according to the requirements in actual use, otherwise it may cause the page to not open.

Custom static routing rule mode can set up 6 groups of static routing rules, each corresponding to different pages, including document details, document list, model homepage, page, tag list, and tag details.===and the preceding part may not be modified.

Custom rules have already listed some available rules, you can copy these rules to further modify them into rules that meet your needs.

As rules:

archive===/{module}-{id}.html
category===/{module}-{filename}(-{page})
archiveIndex===/{module}.html
page===/{filename}.html
tagIndex===/tags(-{page})
tag===/tag-{id}(-{page})

In the actual rule configuration, each rule is paired by规则名===规则值. Rule names include:archive/category/archiveIndex/page/tagIndex/tag.

In the rule values, there are some commonly used variables that can be selected and used. Variables are enclosed in curly braces{}, such as{id}. Available variables: data ID{id}Custom data link name{filename}Custom category link name{catname}Category ID{catid}Model Table Name{module}, page number{page}, the page number should be placed within parentheses, such as:(/{page}).

plugin-rewrite-11

By combining variables, you can generate some complex URL static forms.