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

Re: [cobalt-users] Redirecting sites - A new question regarding .htaccess!



At 18:41 13/02/01 -0600, "john" <john@xxxxxxxxxxxxx> wrote:
>In .htacess, I put:
>
>  Redirect / http://www.newdirection.com/
>
>The problem is, only www.domain.com redirects, not domain.com


Add the following in your httpd.conf file at the last line
 
Include /etc/httpd/conf/extra.conf
 
Then create a file /etc/httpd/conf/extra.conf
with at least following contents.
 
<VirtualHost the.ip.number.here>
ServerName www.domain.com
ServerAlias domain.com
RedirectPermanent / http://www.newdirection.com/
</VirtualHost>

Now restart the web server.

--
Babu P. Yogarajah <bpy@xxxxxxxxx>
___________________________________________________
99p Domain Registration Scheme -> http://99p.org/