Need your help abt the config of Ionics URL rewrite

Topics: User Forum
Nov 25, 2008 at 4:32 PM
From Jason S:

I'm a newbie of Ionics ISAPI rewrite filter. I try it in order to do
an access control about if all incoming request which are not access
to .aspx and .js  at, it will redirect the request to
particular page(e.g xyz.aspx).
In this case, if the request such as or or or will redirect to

Here is the rewrite rule in my isapirewrite4.ini for testing:
RewriteCond %{URL} !\.(aspx|js)$ [I]
RewriteRule ^(.*) /xyz.aspx [I,L]

But it doesn't work for my purpose, may I know any wrong syntax or
pattern in the rule?


Nov 30, 2008 at 9:02 PM
Jason, IIRF does not use the preceding ! as a negation.
If you read the readme, you will see this.

Also you construction for the rule is rather odd.   The RewriteRule always tests the URL pattern, you don't need a RewriteCond to do it.

RewriteRule ^/(.*)\.(?<!(aspx|js))$  /xyz.aspx   [I,L]

I suggest you run this through the TestDriver to see if your rules are doing what you expect.

ps: Is your name really Jason?  It is an English name but it does not seem that English is your first language.