Errors Pepper Documentation
Installation
Installing Pepper
- Upload the
/errors/directory and its contents to/mint/pepper/tillkruess/. If the directory/tillkruess/doesn’t exist, create it. - Login to your Mint installation and in the Preferences click “Install” under Pepper.
- Click the Errors Pepper “Install” button. Click “Okay”.
Updating Pepper
- Delete the
/errors/directory on the server. - Upload the
/errors/directory and its contents to/mint/pepper/tillkruess/.
Regular expression examples
Regular expression patterns can be very complex. These are a few basics in order to get this Pepper working.
Every pattern has to start and end with a delimiter. A common delimiter is a slash (/), or a tilde (~). The expression (.+) matches one or more characters. You can escape special characters like /, + or . with a backslash (e.g. \.).
If the title of you 404 page is: example.com - 404 Not Found all of these patterns will match:
/404/
/404 Not Found/
/example(.+)Not Found/
A few more examples:
Title: Oh no, a 404 error!
Pattern: /Oh no(.+)404 error/
Title: Sitename ยง Error 404
Pattern: /Error 404/
Title: File Not Found // example.com
Pattern: /File Not Found/
Title: 404 (File Not Found) - Sitename
Pattern: /404(.+)File Not Found/
Title: Sitename - Page Not Found
Pattern: /Page Not Found/