-----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/(.*)$ to ^(.*)$,
>> it works for every page. But I only wanted it to change when
>> entering the teachers page. Clearly, then, I still have the regex
>> wrong. What is the correct way to achieve the redirection?
> 
> What if you move /teachers/ into the RewriteCond?
> 
> RewriteCond %{SERVER_PORT} 80 RewriteCond %{REQUEST_URI} /teachers/ 
> RewriteRule ...
> 
  Cool! That worked.

- -- 
James Moe
moe dot james at sohnen-moe dot com
520.743.3936
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.15 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk4kz7YACgkQzTcr8Prq0ZNJEQCgsbbBqq/f2ZAAi9wpixxxnxaf
TVkAn0+y8dbyaQ+4qwrPRGUgSJF1Bs4O
=CVqk
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscr...@httpd.apache.org
   "   from the digest: users-digest-unsubscr...@httpd.apache.org
For additional commands, e-mail: users-h...@httpd.apache.org

Reply via email to