Forum Moderators: phranque

Message Too Old, No Replies

How to make generic .htaccess for skeleton dir?

         

mikeseo

2:04 am on Jul 4, 2005 (gmt 0)

10+ Year Member



I have

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.

mikeseo

2:33 am on Jul 4, 2005 (gmt 0)

10+ Year Member



I believe I found what I want with postwwwacct if anyone is looking for something similiar.