RewriteEngine on rewritecond %{http_host} ^[^.]+\.[^.]+$ [nc] rewriterule ^(.*)$ https://www.%{http_host}/$1 [r=301,nc] RewriteRule index\.html /cgi-bin/commerce.cgi?display=home