[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
- Subject: RE: [cobalt-users] [raq3]way to have sites like domain.com and not www.domain.com
- From: "Dan Kriwitsky" <list1@xxxxxxxxxxxxxxxxxxxx>
- Date: Tue Jun 10 06:19:01 2003
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.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.