Remove unnecessary checks in regular expression.
The path has already been checked, no need to check it again. Just check the end of the string. Alternatively, could probably do the check inside the RewriteRule.