Till Krüss’s Pepper

Errors Pepper: Documentation

Installation

Installing Pepper

  1. Upload the /errors/ directory and its contents to /mint/pepper/tillkruess/. If the directory /tillkruess/ doesn’t exist, create it.
  2. Login to your Mint installation and in the Preferences click “Install” under Pepper.
  3. Click the Errors Pepper “Install” button. Click “Okay”.

Updating Pepper

  1. Delete the /errors/ directory on the server.
  2. Upload the /errors/ directory and its contents to /mint/pepper/tillkruess/.

Regular expression examples

Regular expressions are very complex. These are a few basics to get this Pepper working.

Every regular expression has to start end end with a delimiter. A common delimiter is a slash (/), or a the number sign (#).
The expression (.+) matches one or more characters. You can escape special characters like / # + . with a backslash (\.).

If the title of you 404 page is: example.com - 404 Not Found all of these regular expressions will match:
/404/
/404 Not Found/
/example(.+)Not Found/

Here are a few more examples your regular expressions could be:

Title: Oh no, a 404 error!
Regexp: /Oh no(.+)404 error/

Title: Sitename § Error 404
Regexp: /Error 404/

Title: File Not Found // example.com
Regexp: /File Not Found/

Title: 404 (File Not Found) - Sitename
Regexp: /404(.+)File Not Found/

Title: Sitename - Page Not Found
Regexp: /Page Not Found/