Menu
This is from no-www.org:
[code]RewriteEngine On
RewriteCond %{HTTP_HOST} ^www.(.+)$ [NC]
RewriteRule ^(.*)$ http://%1/$1 [R=301,L]
How can it be made to require the www, instead of stripping it out, without hard-coding the domain name every time like I’ve been doing with this:
[code]RewriteCond %{HTTP_HOST} ^mydomain.com
RewriteRule ^(.*)$ http://www.mydomain.com/$1 [R=301,L]
TIA
ayvegh