Re: Apache2 & mod_rewrite
Angelo Bertolli ha scritto:
I would want that when a user write a URL as http://domain1.com the
URL comes rewritten in http://www.domain1.com and
when a user write a URL as http://domain2.com the URL comes rewritten
I think you need to add ServerAlias domain2.com to your second
vhost. When Apache first decides which vhost block to use, it
doesn't find one for domain2.com so it defaults to the first block.
Could you help me??
Just add this line:
Under this line:
And see if that works.