select id, redirect from sf_404 where url like 'buy/house/waterford-city/apartment-12-and-3'Would redirect