Форумы / Cotonti / Support / Rewrite rule to "kick in" before default Cotonti response?

foxhound
#33519 12.03.2012 22:12

You all know these kind of rules in the system log:

A variable type check failed, expecting G/ALP for 'e' : http://www.mystupidurl.com/xxxx/weee.txt? - /plug.php?e=http://www.mystupidurl.com/xxxx/weee.txtt?&something=www.myownwebsite/plug.php?e=&para=xxxxxxxx

If you execute this part of the url: www.myownwebsite/plug.php?e=&para=xxxxxxxx you get a 950 error message like this:
 

An error occured, maybe a wrong URL?

Redirecting...

Right now I am trying to make a rewrite rule which should redirect the traffic when he uses "plug.php?e=&para=xxxxxxxx" but the thing is, the rewrite rule is "overruled" by the default cotonti response. So, no matter the rewrite condition it will never redirect except for the default action (redirect to homepage).
This is the rewrite rule I am trying:

RewriteCond %{QUERY_STRING} ^xxxxxxxx$ [NC]
RewriteRule plug.php http://myfunnydomain.boe [L]

Anyone has a tip how I can force the redirect to work so the person using this kind of stuff gets redirected to another domain (dont worry, its a domain setup specially for this by a friend of mine, I am not going to punish someone else).

 

Added 1 hour later:

Sorry for the bother, although not as I wanted (no token to block all instances of "xxxxxxxx" I got it to work, redirecting him to his own server :)

<img src="http://www.armaholic.com/datas/thumbs/green-sea-battalion-uniforms-version-03-preview_4.jpg" alt="green-sea-battalion-uniforms-version-03-" />
Отредактировано: foxhound (12.03.2012 23:54, 13 лет назад)