Re: mod_rewrite woes

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

 



----- 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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx




[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux