RewriteCond parse error (Isapi Rewrite ver 2)
2 posts
• Page 1 of 1
RewriteCond parse error (Isapi Rewrite ver 2)
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:
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteRule ^(.*)$ /404.php? [L]
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:
RewriteCond %{DOCUMENT_ROOT}%{REQUEST_URI} !-f
RewriteRule ^(.*)$ /404.php? [L]
Re: RewriteCond parse error (Isapi Rewrite ver 2)
Hello,
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]
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]
2 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 0 guests