-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/(.*
> 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
-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}
> 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
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
-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