Switched the response codes over to use the SilverStripe descriptions and made sure link mappings weren't created for a newly instantiated page.
Split the regular expression mapping out into two database queries to improve efficiency.
Escaping MySQL regular expression backslashes as per the documentation.
API Added fallback rules for missing children

Allow a user to specify general rules for how a particular page should handle
redirects when there are missing children. This includes

* Redirect to a specific URL
* Redirect to the nearest found parent page
* Redirect to that specific page, regardless of hierarchy
Merge pull request #1 from nyeholt/dynamic_fallbacks

API Added fallback rules for missing children
Just updating a couple of fallback things for consistency :ok_hand:
Added the ability to define a vanity URL from a page itself.
Updated the priority of a link mapping generated from a site tree element.
Base implementation for testing link mappings.
Change to using a direct build of an array containing redirect response codes
API Allow Fallback mapping to apply to site config

Extracted fallback logic to allow it to be applied to SiteConfig objects
in addition to site tree objects
Added JS to toggle display of fallback URL field
Functionality implementation around testing the link mappings.
Styling up the testing interface.
Merge pull request #3 from nyeholt/sitewide_fallbacks

Sitewide fallbacks + UI improvements
Minor CSS change to the testing interface.
Merge branch 'dynamic' of github.com:NGlasl/silverstripe-linkmapping into dynamic
Updating the documentation to reflect the latest changes.
Corrected issue #1.
Corrected a testing interface issue where page links weren't being picked up.