On 12/5/07 2:28 PM, "John Campbell" <[EMAIL PROTECTED]> wrote:
> This should work: > > RewriteEngine on > > RewriteCond %{HTTP_HOST} !^www\.example\.com [NC] > RewriteCond %{HTTP_HOST} !^$ > RewriteCond %{SERVER_PORT} !^443$ > RewriteRule ^/(.*)$ http://www.example.com/$1 [R=301,L] > > RewriteCond %{HTTP_HOST} !^www\.example\.com [NC] > RewriteCond %{HTTP_HOST} !^$ > RewriteCond %{SERVER_PORT} ^443$ > RewriteRule ^/(.*)$ https://www.example.com/$1 [R=301,L] > Thanks John! That should do the trick. _______________________________________________ New York PHP Community Talk Mailing List http://lists.nyphp.org/mailman/listinfo/talk NYPHPCon 2006 Presentations Online http://www.nyphpcon.com Show Your Participation in New York PHP http://www.nyphp.org/show_participation.php