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

Re: [cobalt-users] [RaQ550] DNS config: Domain accessible without www



> 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