Looks like you went the wrong direction with the rewrite. The ! is "not".
You have "not" www.consumer-sc.ca.gov, then redirect.
RewriteCond %{HTTP_HOST} !^www\.consumer-sc\.ca\.gov$ [NC]
Should be
RewriteCond %{HTTP_HOST} ^www\.consumer-sc\.ca\.gov$ [NC]
Or even (which doesn't force the req
In the first RewriteCond, you want to match www.consumer-sc.ca.gov, but
the ! in front says to match anything but that. That's also why
consumerservices.ca.gov is returning a 301, because it does match the
condition.
On Mon, September 15, 2008 6:46 pm, Drew Tomlinson wrote:
> I'm using Apache ver
Ben Spencer wrote:
Looks like you went the wrong direction with the rewrite. The ! is "not".
You have "not" www.consumer-sc.ca.gov, then redirect.
RewriteCond %{HTTP_HOST} !^www\.consumer-sc\.ca\.gov$ [NC]
Should be
RewriteCond %{HTTP_HOST} ^www\.consumer-sc\.ca\.gov$ [NC]
Or even (which
On Tue, 2008-09-16 at 07:01 -0700, Drew Tomlinson wrote:
> Ben Spencer wrote:
> > Looks like you went the wrong direction with the rewrite. The ! is "not".
> > You have "not" www.consumer-sc.ca.gov, then redirect.
> >
> > RewriteCond %{HTTP_HOST} !^www\.consumer-sc\.ca\.gov$ [NC]
> >
> > Should b