Forum

Match rule

Fred
22 November 2016, 13:11
Hi Hugo,

This is possible to have a toolkit rule that match everything that is not .shtml to trigger ErrorHandler = 404:/404.php ?

Thank you
Hugo Leisink
24 November 2016, 19:19
Not yet. In the next version, you will.
UrlToolkit {
Match !\.shtml$ NotFound
}

VirtualHost {
...
UseToolkit = my_rule
ErrorHandler = 404:/404.php
}
Fred
26 November 2016, 00:17
Thank you for the reply
This topic has been closed.