RE: [EMAIL PROTECTED] Trouble With mod_rewrite

2008-09-16 Thread Ben Spencer
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

Re: [EMAIL PROTECTED] Trouble With mod_rewrite

2008-09-16 Thread Dan Poirier
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

Re: [EMAIL PROTECTED] Trouble With mod_rewrite

2008-09-16 Thread Drew Tomlinson
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

Re: [EMAIL PROTECTED] Trouble With mod_rewrite

2008-09-22 Thread Tom Evans
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