filter urls fixes for rewrite enabled