Help with pseudo-static rules

Pseudo-static rules allow you to define the URL composition form of a website according to actual needs.

In order to facilitate users and reduce the hassle of configuration, the system has built-in four ready-made pseudo-static rules, which can be used directly by just choosing.

plugin-rewrite-1

The default pseudostatic rules are:

  1. In digital mode, document details, document lists, single page details, and document tags are all used as the basis for URL generation, and are usually used more in Chinese websites.
  2. Model naming mode Model naming mode is generally used more in English websites
  3. Classification Naming Mode 1 Classification Naming Mode 1, generally used more in Chinese websites
  4. Classification Naming Mode 2 Classification Naming Mode 1, generally used more in English websites

In order to enable you to customize the link display form of website content, the system also provides a custom mode.

Custom mode is an advanced mode. In actual use, please be sure to configure it as required, otherwise the page may not be opened.

A total of 6 sets of pseudostatic rules can be set in a custom pseudostatic rule mode, which correspond to different pages, namely document details, document list, model homepage, page, tag list, and tag details. === and the previous part cannot be modified.

In the custom rules, some available rules have been listed, and you can copy these rules to further modify them into rules that meet your needs.

As the rules:

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

In actual rule configuration, each rule is规则名===规则值Come to pair. The rules are:archive,category,archiveIndex,page,tagIndex,tag.

Among the rule values, there are some commonly used variables to choose from and use. Variables are wrapped in curly braces{},like{id}. Available variables are: Data ID{id}, data custom link name{filename}, custom link name for category{catname}, Classification ID{catid}, model table name{module}, page number{page}, the page should be placed in brackets, such as:(/{page}).

plugin-rewrite-11

Through the combination of variables, you can generate some complex URL pseudostatic forms.