[users@httpd] Rewrite Question.

2021-04-29 Thread Mark Widner
I need some help. I have a cookie value that comes with a value of lang-cc that I need to use in a RewriteRule in the format of CC-LANG. I have tried setting two environment variables by backreferencing the cookie and using a regex. Admittedly, regex is not my strong skill. I am figuring that I

Re: [users@httpd] rewrite question

2011-11-20 Thread Igor Cicimov
Actually this is better: RewriteCond %{HTTPS} !on RewriteRule .* https://webmail.example.com [R,L] On Nov 21, 2011 8:48 AM, "Igor Cicimov" wrote: > Try this one > > RewriteCond %{HTTP_PORT} !443 > RewriteRule .* https://webmail.example.com > On Nov 21, 2011 3:15 AM, "David Mehler" wrote: > >> H

Re: [users@httpd] rewrite question

2011-11-20 Thread Igor Cicimov
Try this one RewriteCond %{HTTP_PORT} !443 RewriteRule .* https://webmail.example.com On Nov 21, 2011 3:15 AM, "David Mehler" wrote: > Hello, > > I've got a rewrite question. I'm running webmail on > webmail.example.com and I've got that secured by ssl. If I go to: > > https://webmail.example.co

[users@httpd] rewrite question

2011-11-20 Thread David Mehler
Hello, I've got a rewrite question. I'm running webmail on webmail.example.com and I've got that secured by ssl. If I go to: https://webmail.example.com it works. But as a user if they go to either of: http://webmail.example.com or just: webmail.example.com without the protocol it doesn't. I