--001636229498e5adca0485febf99
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
Hi everyone,
I have a problem and I can't figure a solution, so I'm asking here, hoping
not to bother.
I have a perl script that takes a FILEPATH and should redirect to the
FILEPATH on the server. Everything works fine in my setup with the help of =
a
$r->handler(Apache2::Const::DIR_MAGIC_TYPE) in PerlFixUpHandler.
But my problem is that the redirection is not visible to the client. Its ur=
l
doesn't change, but I want it to change to the FILEPATH. In fact, the
response has a status code of 200, because the redirect is handled
internally by Apache (or mod_perl ?). I tried to return Apache2::Const::OK
instead of REDIRECT, but it didn't change the internal redirect.
I'd rather not use mod_rewrite.
It worked as expected on Apache1.3/mod_perl1... The url redirect was visibl=
e
to the user.
So my question is : how can I respond with a 301 or 307 Redirect to the
client?
Thanks for your time,
C=E9dric Bertolini
--001636229498e5adca0485febf99
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
<font color=3D"#663300"><font face=3D"georgia,serif">Hi everyone,<br><br>I =
have a problem and I can't figure a solution, so I'm asking here, h=
oping not to bother.<br><br>I have a perl script that takes a FILEPATH and =
should redirect to the FILEPATH on the server. Everything works fine in my =
setup with the help of a $r->handler(Apache2::Const::DIR_MAGIC_TYPE) in =
PerlFixUpHandler.<br>
<br>But my problem is that the redirection is not visible to the client. It=
s url doesn't change, but I want it to change to the FILEPATH. In fact,=
the response has a status code of 200, because the redirect is handled int=
ernally by Apache (or mod_perl ?). I tried to return Apache2::Const::OK ins=
tead of REDIRECT, but it didn't change the internal redirect.<br>
<br>I'd rather not use mod_rewrite.<br><br>It worked as expected on Apa=
che1.3/mod_perl1... The url redirect was visible to the user.<br><br>So my =
question is : how can I respond with a 301 or 307 Redirect to the client?<b=
r>
<br>Thanks for your time,<br>C=E9dric Bertolini<br><br></font></font>
--001636229498e5adca0485febf99--
