ComboStrap URL Management - Pages Rules

1 - About

page rules are rules that permits to apply a redirections for a page or a group of page.

3 - Example

3.1 - Redirect all pages from the namespace ''database'' to ''db''

With the below rule:

  • Pattern: database:*
  • Target: db:$1

If a page called database:table does not exist, the URL manager will calculate the target page db:table and if the page exists, it will rewrite it.

3.2 - Redirect a page to an external web site

With the below rule:

If a page called dokuwiki:404managerplugin does not exist, the URL manager will send a redirect to the page

4 - Steps

4.1 - Go to the new rule page

4.2 - Create a rule

  • The matcher is a pattern that should match the missing Dokuwiki Id. You can use one or more * that matches any number of characters (including none).
  • The target is the new page. The $1, $2, … characters correspond to the value of the star character * in order and you can use them to define the target page
  • The priority defines in which order, the page rules are applied.
Powered by ComboStrap