change the rule to replace the url by a file path