!-f !-d

Topics: User Forum
Jan 27, 2007 at 9:56 PM
tested on 1.2.4 and 1.2.10

The following rules work only about
40% of the time if the url doesn't exist:

RewriteLog C:\temp\rewriteloader_2.txt
RewriteLogLevel 5
MaxMatchCount 10
IterationLimit 10


RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^/?(.*)/?$ /load.php?url=$1 L
Jan 27, 2007 at 9:57 PM
'/DesignCenter' does NOT exist as a file or dir.


Sat Jan 27 17:54:59 2007 - New Url: '/DesignCenter'
Sat Jan 27 17:54:59 2007 - ApplyRules (depth=0)
Sat Jan 27 17:54:59 2007 - Rule 1 : 2
Sat Jan 27 17:54:59 2007 - ReplaceServerVariables: VariableName='REQUEST_FILENAME'...
Sat Jan 27 17:54:59 2007 - ReplaceServerVariables: TestString='%{REQUESTFILENAME}' out='REQUESTFILENAME'
Sat Jan 27 17:54:59 2007 - GenerateReplacementString: src='/DesignCenter' ReplacePattern='REQUEST_FILENAME' vec=[ 0, 13] count=2
Sat Jan 27 17:54:59 2007 - Condition: checking 'REQUEST_FILENAME' against pattern '!-d'
Sat Jan 27 17:54:59 2007 - Condition false, Rule does not apply (rc=-1)
Sat Jan 27 17:54:59 2007 - No Rewrite
Coordinator
Feb 24, 2007 at 1:47 AM
The logic on this has been re-worked slightly for v1.2.11. Can you test there?
Thanks
-Cheeso