Re: [users@httpd] Simple RewriteRule?

2011-07-18 Thread James Moe
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 07/18/2011 04:37 PM, Geert Mak wrote: > >> I have changed the rule to >> >> RewriteEngine On RewriteCond %{SERVER_PORT} =80 RewriteRule >> ^/teachers/(.*)$ https://%{HTTP_HOST}/$1 [L,R] >> >> which does not work either. If I change ^/teachers/(.*

Re: [users@httpd] Simple RewriteRule?

2011-07-18 Thread Geert Mak
> I have changed the rule to > > RewriteEngine On > RewriteCond %{SERVER_PORT} =80 > RewriteRule ^/teachers/(.*)$ https://%{HTTP_HOST}/$1 [L,R] > > which does not work either. If I change ^/teachers/(.*)$ to ^(.*)$, it > works for every page. But I only wanted it to change when entering the > t

Re: [users@httpd] Simple RewriteRule?

2011-07-18 Thread James Moe
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On 07/18/2011 03:12 PM, James Moe wrote: > I have what I thought is a simple re-write rule: > > RewriteEngine on ReWriteRule ^/teachers/(.*)$ https://${HTTP_HOST}/$1 > [L,R] > I have changed the rule to RewriteEngine On RewriteCond %{SERVER_PORT}

Re: [users@httpd] Simple RewriteRule?

2011-07-18 Thread Geert Mak
> Hello, > apache v2.2 > > I have what I thought is a simple re-write rule: > > RewriteEngine on > ReWriteRule ^/teachers/(.*)$ https://${HTTP_HOST}/$1 [L,R] > > The idea is that if the teachers page is being loaded, always use the > secure protocol. It does not work. > Where have I gone wro

Re: [users@httpd] Simple RewriteRule?

2011-07-18 Thread Igor Cicimov
Typo in ReWriteRule, should be RewriteRule On Jul 19, 2011 8:12 AM, "James Moe" wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, apache v2.2 I have what I thought is a simple re-write rule: RewriteEngine on ReWriteRule ^/teachers/(.*)$ https://${HTTP_HOST}/$1 [L,R] The idea is

[users@httpd] Simple RewriteRule?

2011-07-18 Thread James Moe
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hello, apache v2.2 I have what I thought is a simple re-write rule: RewriteEngine on ReWriteRule ^/teachers/(.*)$ https://${HTTP_HOST}/$1 [L,R] The idea is that if the teachers page is being loaded, always use the secure protocol. It does not