httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "--[ UxBoD ]--" <ux...@splatnix.net>
Subject Re: [users@httpd] mod_rewrite woes
Date Fri, 21 Jan 2011 10:51:39 GMT
----- 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: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Mime
View raw message