Fixed status code when redirecting
Removed redundancy when redirecting