-----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} =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? - -- 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/ iEYEARECAAYFAk4kwIEACgkQzTcr8Prq0ZPrMgCgibE2N4RpjWmVbT+Gn5jVaAN4 8dYAn1Rbj5hQesw6SK4VMVFwyA8PEwkg =XYW3 -----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-unsubscribe@xxxxxxxxxxxxxxxx " from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx