----- Original Message -----
> On 01/21/2011 08:58 AM, Mark Wiltshire wrote:
> > Hi UxBoD
> >
> > Can you confirm you have
> >
> > RewriteCond
> > RewriteRule
> >
> > for each of you domains, I believe if you write multiple
> > RewriteCond, they all
> > have to match for the Rule then to be run.
> > Try in separate pairs.
>
> mod_rewrite will default to do logical AND operations on consecutive
> RewriteCond, as UxBoD did, and added the [OR] option is correct, and
> will work.
>
> /Björn
>
Appreciate all the replies. In the end I got it to work by changing the rule
to:
RewriteCond %{HTTP_HOST} !=www.somedomain.com
RewriteRule ^ http://www.somedomain.com%{REQUEST_URI} [R=301,L]
--
Thanks, Phil
---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: [email protected]
" from the digest: [email protected]
For additional commands, e-mail: [email protected]