Tidied up access denied URL auto-configuration