[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: [cobalt-users] [raq3]way to have sites like domain.com and not www.domain.com



> 
> RewriteEngine on
> RewriteCond %{HTTP_HOST}                !^01.02.03.04(:80)?$
> RewriteCond %{HTTP_HOST}                !^host.domain.tld(:80)?$
> RewriteRule ^/(.*)                      
> http://host.domain.tld/$1 [L,R]
> RewriteOptions inherit
> 
> If 
> you put a "#" in front of the lines, and then restart your 
> daemon, it will do what you want it to do, plus if you have 
> multiple names for your site.  They will remain in the URL bar too :)
> 

Note: reload instead of restart will work and is less disruptive.
/etc/rc.d/init.d/httpd reload
-- 
C2003 Dan Kriwitsky

Please reply to the list only. Off list replies are not read.