httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Glenn Gillis <gl...@elaw.org>
Subject Re: [users@httpd] Rewrite rule rewriting unexpectedly
Date Tue, 20 Apr 2010 19:07:43 GMT
Eric Covener wrote, On 4/19/2010 2:59 PM:
> On Mon, Apr 19, 2010 at 5:44 PM, Glenn Gillis <glenn@elaw.org> wrote:
>> Would any rewriting gurus out there care to speculate why the rewrite rule:
>>
>>  "RewriteRule /blog http://spotlight.wordpress.com/"
>>
>> would cause the image URL:
>>
>>  "<img src="/system/files/images_content/blogspot_final_framed_0.jpg"
>>  alt="what we do" width="500" height="125" />"
>>
>> to redirect to the spotlight.wordpress.com webpage?
>>
>> Running Apache 2.2.9 on FreeBSD 6.x.
> 
> If you want to match exactly "/blog" and not that string inside the
> URL, you need to anchor it with e.g. ^/blog$

Thanks, that works!

I believe I had tried it with just ^/blog and just /blog$ but not with ^/blog$.
-- 
Glenn

Mime
View raw message