select id, redirect from sf_404 where url like 'buy/apartment/mayo/westport/apartment-1a-market-lane-wes220172'Would redirect