如何在 apache 1.3 上模拟 apache cookie 标志进行重写
我正在使用带有 mod_rewrite 的 Apache 1.3,它不支持重写的 cookie|CO 标志。下面的代码在 Apache 2.0 中工作正常
# Works fine with Apache 2.0
RewriteRule ^/$ http://www.example.com/rs/ [CO=name:value:.example.com:240:/,R=301]
有没有办法在 Apache 1.3 中做同样的事情?
我可以使用:
Header set Set-Cookie "name=value; path=/; domain=.examplle.com"
仅在重写规则匹配时添加cookie吗?
I'm using Apache 1.3 with mod_rewrite it doesn't support the cookie|CO flag for rewrites. The code bellow works fine in Apache 2.0
# Works fine with Apache 2.0
RewriteRule ^/$ http://www.example.com/rs/ [CO=name:value:.example.com:240:/,R=301]
Is there a way to do the same with Apache 1.3?
Can I use:
Header set Set-Cookie "name=value; path=/; domain=.examplle.com"
to add the cookies only when a rewrite rule match?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论