Forum Moderators: phranque
rewriteCond %{HTTP_HOST} .
rewriteCond %{HTTP_HOST}!^www\.domain\.com [NC]
rewriteRule ^(.*)$ [domain.com...] [R=301,L]
in my .htaccess file. For each site I have to change the domain by hand. Is there anyway I can make this generic? Like localhost 127.0.0.1 or use some code to input the domain like $_SERVER['HTTP_HOST']? I want to put .htaccess in the skeleton directory so all new sites will have it. But I don't want to change domain by hand.