Avoid redirects on hardcoded URLs