If I want to redirect domain.com to www.domain.com (or for that matter anything.domain.com to www.domain.com I have figured out (but not tested) the following so far:
<IfModule mod_rewrite.c> RewriteEngine on RewriteCond %{HTTP_HOST} ^domain\.com$ [NC] RewriteRule ^(.*)$ http://www.domain.com/$1 [L, R=301] </IfModule> But what about https? How can I make the redirect work for both http and https transactions, redirecting http to http and https to https? Cliff
_______________________________________________ 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