httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Eric Covener <cove...@gmail.com>
Subject Re: [users@httpd] Rewrite rule rewriting unexpectedly
Date Mon, 19 Apr 2010 21:59:07 GMT
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$

-- 
Eric Covener
covener@gmail.com

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


Mime
View raw message