added redirect match support

Please check it now