mod_custom_redirect: check for access permission when saving configuration.
(cherry picked from commit ceb5cd8881f923a7abfac728ec2a74d3cef38f8a)