Re: Rewrite rule rewriting unexpectedly

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

 



Eric Covener wrote, On 4/19/2010 2:59 PM:
> On Mon, Apr 19, 2010 at 5:44 PM, Glenn Gillis <glenn@xxxxxxxx> 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

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature


[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