I'm seeing a weird behaviour:
when I print http headers to go for a local redirect without adding an HTTP Status that indicates a redirect, the redirect is done internally by apache.
Let's say I have a perl script named test.pl and a file test.htm which are accessable via /test.pl and /test.htm.
If test.pl contains
#!/usr/bin/perl
print "Status: 307\nLocation: /test.htm\n\n";
everything works as you'd guess, the browser gets a redirect, follows it and fetches test.htm
However
If test.pl contains
#!/usr/bin/perl
print "Location: /test.htm\n\n";
The browser does _NOT_ get a redirect, but rather gets the response as if it had requested test.htm without any indication that an internal redirect happened.
There's nothing else going on, no mod_rewrite or anything. if you replace test.htm with another script and have them both edit a file, you'll see that both are executed.
Can anybody tell me which module / directive is responsible?
It's not really a problem, I was just surprised when I didn't see a redirect reflected in the address bar when I looked through an old script.
Thanks!