RewriteCond parse error (Isapi Rewrite ver 2)

ISAPI_Rewrite is a powerful URL manipulation engine based on regular expressions
User avatar
Posts: 5
Joined: 02 Feb 2013, 01:14

RewriteCond parse error (Isapi Rewrite ver 2)

04 Feb 2013, 12:11

This line (adopted from apache mod rewrite) is throwing a parse error for me:
Unrecognized string: RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f

Can't quite figure out how to rewrite it for Isapi rewrite ver 2.

The cond/rule set set I'm trying to use is:

RewriteRule ^(.*)$ /404.php? [L]

User avatar
Posts: 871
Joined: 12 Mar 2012, 09:54

Re: RewriteCond parse error (Isapi Rewrite ver 2)

05 Feb 2013, 09:03


The thing is that ISAPI_Rewrite 2 does not support the syntax you provided.
This syntax is applicable in ISAPI_Rewrite 3.
There is no direct alternative for it in v2, you should only exclude all physical files and folders by listing them like this:

RewriteRule /(?!(?:index\.php|css|images|js|etc)).* /404.php [I,L]

Return to ISAPI_Rewrite 2.x

Who is online

Users browsing this forum: No registered users and 11 guests