Forum Moderators: phranque

Message Too Old, No Replies

does rewrite sets cookies?

If I make redirect via rewrite...

         

olvio

2:17 pm on Mar 8, 2005 (gmt 0)

10+ Year Member



If I make redirect via apache rewrite with .htaccess does it sets cookies?

jdMorgan

5:00 pm on Mar 8, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



olvio,

A rewrite does not set a cookie by itself. Under Apache 2.x, you can add a flag to RewriteRule set a cookie if desired.

I hope that's what you are asking about, the question is not clear.

Jim

olvio

5:06 pm on Mar 8, 2005 (gmt 0)

10+ Year Member



yes, could you tell, how do I add that flag?

jdMorgan

5:23 pm on Mar 8, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



The basic syntax is:

RewriteRule old_URI new_URI [CO=NAME:VAL:domain{:lifetime{:path}}]

See the [CO] flag on Apache 2.0 RewriteRule [httpd.apache.org].

Jim

olvio

5:45 pm on Mar 8, 2005 (gmt 0)

10+ Year Member



thanks jdMorgan. that is the information I looked for.