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

Re: [cobalt-users] same domain name, different host name question



> <VirtualHost 123.123.123.123>
> ServerName www.jale.domain.com
> ServerAdmin siteadminname
> ServerAlias jale.domain.com
> DocumentRoot /home/sites/www.domian.com/users/jale/web
> RewriteEngine on
> RewriteCond %{HTTP_HOST}    !^123.123.123.123(:80)?$
# RewriteCond %{HTTP_HOST}    !^www.jale.domain.com(:80)?$
# RewriteRule ^/(.*)    http://www.jaledomain.com/$1 [L,R]
 RewriteOptions inherit
> AddHandler cgi-wrapper .cgi
> AddHandler cgi-wrapper .pl
> </VirtualHost>

> - the only thing I don't like is that when I goto jale.domain.com the URL
> changes to www.jale.domain.com - it all works, just looks funny when you go
> to the page. Anything I can do about it? If it is a big deal I'll just
> leave it, if easy I'd do something about it.

Note the two lines I comented out (#) above
# RewriteCond %{HTTP_HOST}    !^www.jale.domain.com(:80)?$
# RewriteRule ^/(.*)    http://www.jaledomain.com/$1 [L,R]

Then it won't change to 'www'

Gerald
--
http://frontstreetnetworks.com         http://raqware.com
229 Front Street, Ste C, New Haven, CT 06513-3203
                           Phone: 203-785-0699

_____________________________________
cobalt-users mailing list
cobalt-users@xxxxxxxxxxxxxxx
To subscribe/unsubscribe, or to SEARCH THE ARCHIVES, go to:
http://list.cobalt.com/mailman/listinfo/cobalt-users

Worked like a charm!!! Thanks,
Jale