2 ms·
When working with non-trivial redirects, test them with something like "wget -S $url" instead of your browser. The redirect caching makes it very painful to to
by perlgeek 11y ago
When working with non-trivial redirects, test them with something like "wget -S $url" instead of your browser. The redirect caching makes it very painful to to repeatedly test the same redirect.
Also, start with a 302, and only change the status to 301 once you're confident they are correct.