Forcing www in the URL with wildcard subdomains
Posted: Wed Dec 06, 2006 9:05 pm
Hi guys,
I have wildcard subdomains enabled, and this code in my .htaccess file to force the www to be in the url isn't working.
Any ideas? The exact same code with the domain changed works fine on another domain that doesn't have wildcard subdomains enabled.
I have wildcard subdomains enabled, and this code in my .htaccess file to force the www to be in the url isn't working.
Code: Select all
php_flag zlib.output_compression On
php_value zlib.output_compression_level 5
RewriteEngine On
RewriteCond %{HTTP_HOST} .
RewriteCond %{HTTP_HOST} ^habitformer\.com [NC]
RewriteRule (.*) http://www.habitformer.com/$1 [R=301,L]