redirects.php
Redirect and access control functions
Handles three types of redirects:
- Reference URL redirects (external reference URLs)
- Location/Customer access control (non-editors can't view directly)
- Expired reference redirects (redirect to archive if reference expired)