Trying SCRIPT_FILENAME instead of rewrite rule.