Fixed urls in rewrite. Removed vestigial sub_filter.