add redirecting for resource