[Templates] Templates and mod_rewrite.

[prev] [thread] [next] [Date index for 2004/06/22]

From: =?ISO-8859-1?Q?Lo=EFc?= Paillotin
Subject: [Templates] Templates and mod_rewrite.
Date: 09:22 on 22 Jun 2004
Fellow list users,=20

I'm running into a problem:=20
I have a rewrite rule (say for example:=20

--
RewriteEngine On
RewriteRule ^/toto/.*$   /tt2/getout.tt
--=20
) that maps a uri (/toto/xxxx) to a particular template.

Needless to say, the /tt2 directory is under Apache::Template, ie when ac=
cesssing http://host/tt2/getout.tt
directly i get back the correctly processed template.=20

But in the case of accessing through the rewrite rule, the server serves =
me the static page, without
processing it.=20

Any idea on how to get rid of this behavior? I guess you're gonna say: Us=
e an external redirection
([R] flag in rewrite) However, I'd rather not to, for compatibility reaso=
ns with funny browsers.=20


Thanx a lot for your help :)

Lo=EFc .=20



_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates

(message missing)

[Templates] Templates and mod_rewrite.
=?ISO-8859-1?Q?Lo=EFc?= Paillotin 09:22 on 22 Jun 2004

Re: [Templates] Templates and mod_rewrite.
=?ISO-8859-1?Q?Lo=EFc?= Paillotin 09:43 on 22 Jun 2004

Generated at 08:55 on 15 Mar 2005 by mariachi v0.52