Allow for requests made with no extension (configurable), but enforce valid extension regex when an extension is present