Strange. And it looks like it /should/ work in the server conf too.
Might be something like symlinks being turned off in the main
Directory block or something.
Try adding this (we'll leave off the ifModule, as we'd want an error
if we don't have mod_rewrite loaded (and I'd try to limit where I'm
allowing following of symlinks, doing rewriting, etc.):
Options +FollowSymLinks Required: This is a security feature of the
rewrite engine and must be set. It informs Apache to follow the newly
created link names.
Options +Indexes Optional, set it if you want to display a
directory listing when no index page found (Uniform Server's default).
RewriteEngine On Required: Turns the rewrite engine on and must be set.
RewriteCond %{QUERY_STRING} .*DECLARE.* [NC]
RewriteRule .* /violation.htm [L]
RewriteCond %{PATH_INFO} .*DECLARE.* [NC]
RewriteRule .* /violation.htm [L]
And be sure that /violation.htm is a valid path to a file! That bit me
for a little bit (wrong named file, didn't seem to do anything).
:DeN
--
Employ your time in improving yourself by other men's writings, so
that you shall gain easily what others have labored hard for.
Socrates
On Fri, Aug 8, 2008 at 10:12 PM, Raymond Camden wrote:
> Hmm. I'm having no luck with this. I'm trying it on a blogcfc site, so
> it's being added after /...., so I also added path_info
>
> RewriteEngine on
> RewriteCond %{QUERY_STRING} .*DECLARE.* [NC]
> RewriteRule ^(.*)$ /violation.htm
> RewriteCond %{PATH_INFO} .*DECLARE.* [NC]
> RewriteRule ^(.*)$ /violation.htm
>
> And it's not picking up when it sees declare in the url.
>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;203748912;27390454;j
Archive:
http://www.houseoffusion.com/groups/CF-Talk/message.cfm/messageid:310595
Subscription: http://www.houseoffusion.com/groups/CF-Talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4