select id, redirect from sf_404 where url like 'buy/cottage/wexford/gorey/gethings-cottage-cummerduff'Would redirect