[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] [RaQ550] DNS config: Domain accessible without www
- Subject: Re: [cobalt-users] [RaQ550] DNS config: Domain accessible without www
- From: craig <craig@xxxxxxxxxxxxx>
- Date: Wed Sep 18 05:18:44 2002
- List-id: Mailing list for users to share thoughts on Sun Cobalt products. <cobalt-users.list.cobalt.com>
> domain.ext (ln -s /home/sites/siteXX /home/sites/domain.ext)
> edit /etc/httpd/conf/httpd.conf
> and change the following:
>
> RewriteCond %{HTTP_HOST} !^domain.ext(:80)?$
> RewriteRule ^/(.*) http://domain.ext/$1 [L,R]
> RewriteOptions inherit
> AliasMatch ^/~([^/]+)(/(.*))? /home/sites/domain.ext/users/$1/web/$3
>
One other option without needing the sym links etc is
comment this line
RewriteRule ^/(.*) to
#RewriteRule ^/(.*)
now it will not rewrite domain.com to www.domain.com